From DynamoDB to JSON

Two portions of code that do two different functions. Still needs to be
cleaned up.