Skip to content
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

Ensure double values stay double even if they fit in an integer #289

Merged
merged 1 commit into from
May 23, 2022

Conversation

swallez
Copy link
Member

@swallez swallez commented May 23, 2022

Fixes #156

When building a JsonObject, JSON-P (or at least Parsson) interprets floating point values in the JSON as integers if they fit into an integer value (e.g. 1.4778125E7).

This PR fixes in the Jackson-JSON-P bridge, so that deserializing a floating point value as an Object will always return a Double and not an Integer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency between deserialization of _msearch/_mget and _search/_get number values
1 participant