I need to convert a AWS DYNAMODB JSON to a standard JSON object. so I can remove the data type from the DynamoDB JSON Something more like:
in DYNAMODB JSON:
Following is a simple solution which can be applied to convert any DynamoDB Json to Simple JSON.
//passing the reponse.getItems()
public static Object getJson(List
This will produce your desired Json in the form of List>. Then using the Gson you can convert it into the Json format.
Gson gson = new Gson();
String jsonString = gson.toJson(getJson(response.getItems()));