Created
December 10, 2013 19:45
-
-
Save konstantinvlasenko/7896904 to your computer and use it in GitHub Desktop.
convert DynamoDb JSON to regular JSON javascript objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function DynamoDBJson2Json(data) { | |
var obj = {}; | |
for(var prop in data) { | |
var key = Object.keys(data[prop])[0]; | |
obj[prop] = data[prop][key]; | |
} | |
return obj; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment