I have a file containing data exported from DynamoDB, it has DynamoDB's "special JSON" format:
{"key1": {"m":{"key2":{"s":"val2"},"key3":{"s":"val3"}}}}
I need to parse this file and convert the data to DynamoDB item (com.amazonaws.services.dynamodbv2.document.Item) or normal JSON (I know how to convert normal JSON to Item)
I found there are ways to convert Map to Item like the following posts: 1. Converting DynamoDB JSON to Standard JSON with Java 2. How to get the pure Json string from DynamoDB stream new image?
To use the solutions mentioned in these posts, I need to write code to convert the special JSON to Map.
Is there a native way to convert DynamoDB "special JSON" text to normal JSON or directly to DynamoDB item?