Sick of DynamoDB using its own data type descriptors? Swap between DynamoDB and normal JSON!
Install from PyPI via pip
:
pip install dynamo_json
Use as a library
import dynamo_json
dynamo_json.marshall({"some": ["json", "document"]})
# {"some": {"L": [{"S": "json"}, {"S": "document"}]}}
dynamo_json.unmarshall({"some": {"L": [{"S": "json"}, {"S": "document"}]}})
# {"some": ["json", "document"]}
or as a CLI tool
$ dynamo-json '{"my": "json"}'
{"my": {"S": "json"}}
$ dynamo-json '{"my": {"S": "dynamo-json"}}'
{"my": "dynamo-json"}