Skip to content

Deserialize integers as longs when using Gson#623

Open
jamiesanson wants to merge 4 commits intooptimizely:masterfrom
jamiesanson:js/gson-deserialize-integers
Open

Deserialize integers as longs when using Gson#623
jamiesanson wants to merge 4 commits intooptimizely:masterfrom
jamiesanson:js/gson-deserialize-integers

Conversation

@jamiesanson
Copy link
Copy Markdown

@jamiesanson jamiesanson commented May 6, 2026

Summary

Deserialize integers as longs when using Gson. This allows users to then use the resultant Map in downstream serializers more easily.

Note: This is a breaking change in the case where consumers were relying on the double output. It's more correct, so feels worth taking, but feel free to hold this PR until you plan to release a new major version!

Issues

Fixes #622

@jamiesanson jamiesanson force-pushed the js/gson-deserialize-integers branch from c3bc3c2 to 1062edf Compare May 6, 2026 09:27
@FarhanAnjum-opti FarhanAnjum-opti added the acknowledged The issue has been acknowledged and being looked into. Further details will follow. label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acknowledged The issue has been acknowledged and being looked into. Further details will follow.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Gson deserialization treats integers as doubles, breaking downstream serializers

2 participants