'Convert JSON string to DynamoDB LastEvaluatedKey
I have tried using Gson
Gson gson = new Gson();
Map<String, AttributeValue> attributes = gson.fromJson(paginationTokenString, new TypeToken<Map<String, AttributeValue>>() { }.getType());
For the JSON string
{
"createdBy": {
"S": "1234567"
},
"caseCreationDateTime": {
"S": "2022-05-02T10:38:16.574590Z"
},
"caseId": {
"S": "534kjnsjf"
}
}
I'm getting the output something like this {createdBy={}, caseCreationDateTime={}, caseId={}}
Is there any other way to convert JSON String to Map<String, AttributeValue>?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
