-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Description
How do I specify to use bigdecimal to handle numbers in gson? Below is the sample code and sample json string that I am trying to convert to a map.
`Type type = new TypeToken<Map<String, Object>>() { }.getType();
Map<String, Object> data = new Gson().fromJson(strInput, type);`
Sample Json string :
[{
"Type":"Test",
"Amount":100231212111.00,
}]
The result I am getting is a map with double value for Amount. Please help to resolve this issue
Metadata
Metadata
Assignees
Labels
No labels