How return JSON object from DynamoDB with appsync?
How I can get JSON object in response from DynamoDB ? I store data in DB as array of object in format JSON. I have next mapping template request { "version": "2017-02-28", "operation": "PutItem", "key": { "userId": { "S": "$context.identity.username" } }, #set( $attrs = $util.dynamodb.toMapValues($ctx.args)) #set( $attrs.categories = $util.dynamodb.toDynamoDB($ctx.args.categories)) "attributeValues": $util.toJson($attrs) } and mapping template response #set( $result = $ctx.result) #set( $result.categories = $util.parseJson($ctx.result.categories)) $util.toJson($result) but I got response in