{"action":"created","issue":{"url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/77","labels_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/77/comments","events_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/77/events","html_url":"https://github.com/pplu/aws-sdk-perl/issues/77","id":122997229,"number":77,"title":"Where to put native data storage logic for DynamoDB?","user":{"login":"bluefeet","id":98013,"avatar_url":"https://avatars.githubusercontent.com/u/98013?v=3","gravatar_id":"","url":"https://api.github.com/users/bluefeet","html_url":"https://github.com/bluefeet","followers_url":"https://api.github.com/users/bluefeet/followers","following_url":"https://api.github.com/users/bluefeet/following{/other_user}","gists_url":"https://api.github.com/users/bluefeet/gists{/gist_id}","starred_url":"https://api.github.com/users/bluefeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluefeet/subscriptions","organizations_url":"https://api.github.com/users/bluefeet/orgs","repos_url":"https://api.github.com/users/bluefeet/repos","events_url":"https://api.github.com/users/bluefeet/events{/privacy}","received_events_url":"https://api.github.com/users/bluefeet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-18T17:56:22Z","updated_at":"2015-12-29T15:38:56Z","closed_at":null,"body":"Hello,\r\n\r\nI've got some code written up which takes a perl data structure and converts it into a DynamoDB data structure.  For example, this:\r\n\r\n```\r\n{\r\n    foo => 32,\r\n    bar => [\r\n        'a',\r\n        { bee => 'b' },\r\n    ],\r\n}\r\n```\r\n\r\nBecomes this:\r\n\r\n```\r\n{\r\n    foo => {N => '32'},\r\n    bar => {L => [\r\n        { S => 'a' },\r\n        { M => {\r\n            bee => { S => 'b' },\r\n        },\r\n    ]},\r\n}\r\n```\r\n\r\nThis would be used for operations like PutItem.  The inverse is also available, converting the results of operations like GitItem back into perl data structures.\r\n\r\nMy question is, where do you think this should exist?  This logic isn't necessarily Paws specific, as its just munging data to conform with the documented AWS API, which Paws is compliant with.  I'm thinking a new module, maybe something like Amazon::DynamoDB::ItemConversion.  Thoughts?"},"comment":{"url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/comments/167815101","html_url":"https://github.com/pplu/aws-sdk-perl/issues/77#issuecomment-167815101","issue_url":"https://api.github.com/repos/pplu/aws-sdk-perl/issues/77","id":167815101,"user":{"login":"bluefeet","id":98013,"avatar_url":"https://avatars.githubusercontent.com/u/98013?v=3","gravatar_id":"","url":"https://api.github.com/users/bluefeet","html_url":"https://github.com/bluefeet","followers_url":"https://api.github.com/users/bluefeet/followers","following_url":"https://api.github.com/users/bluefeet/following{/other_user}","gists_url":"https://api.github.com/users/bluefeet/gists{/gist_id}","starred_url":"https://api.github.com/users/bluefeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluefeet/subscriptions","organizations_url":"https://api.github.com/users/bluefeet/orgs","repos_url":"https://api.github.com/users/bluefeet/repos","events_url":"https://api.github.com/users/bluefeet/events{/privacy}","received_events_url":"https://api.github.com/users/bluefeet/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T15:38:56Z","updated_at":"2015-12-29T15:38:56Z","body":"Oh, and unrelated to this ticket, I'm adding Paws::DynamoDB support to Starch:\r\n\r\nhttps://github.com/bluefeet/Starch-Store-Paws-DynamoDB\r\n\r\nNot on CPAN yet as I want to use the native attribute freeze/thaw stuff from above."}}