New issue
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
BigDecimal Json View Issues #23
Comments
The fix appears to be adding handling BigDecimal in |
Yeah, that'd be the fix. If you want to open a pull request, feel free. Otherwise I'll try to get this taken care of in the next couple weeks. |
Thanks. Actually I'm not sure how to fix as now when I try to deserialize the JSON I get the error
Any advice? Thanks |
The problem is that you want to represent a BigDecimal as a primitive number like
The serializer is (correctly) treating BigDecimal as an object, because it is one. BigDecimal is typically used in place of The |
This is now available in version 0.12 in Maven Central. |
Hi
Your library does exactly what we were looking for. However, we've noticed enabling it changes our BigDecimal field JSON from:
"latitude": 9874359834.345,
to:
"latitude": { "intVal": null, "scale": 3, "precision": 13, "stringCache": null, "intCompact": 9874359834345 },
How can we restore it back to the initial version?
Thanks
The text was updated successfully, but these errors were encountered: