We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
List<Map<String, Object>>
Object
Number
Sorry, something went wrong.
Fixed by #1290.
No branches or pull requests
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.
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
The text was updated successfully, but these errors were encountered: