Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

[java] Add config option to print 64-bit integers in JSON as unquoted ints if they can be losslessly converted into a 64-bit float #5

Closed
mlmitch opened this issue Mar 22, 2024 · 1 comment

Comments

@mlmitch
Copy link

mlmitch commented Mar 22, 2024

The title of this issue is taken from the following commit made in March 2023.
protocolbuffers/protobuf@330e10d

That commit added a configuration option to the C++ JSON printer for printing 64-bit integers in JSON as unquoted ints if they can be losslessly converted into a 64-bit float. This issue is a request for a similar configuration option to be added to the Java JSON printer.

Something like this has been in high demand from the community for a while, and the above commit feels like a great solution that also maintains JSON compatibility. Some previous issues around this topic:

@mlmitch
Copy link
Author

mlmitch commented Mar 22, 2024

wrong repository - wow. my bad.

@mlmitch mlmitch closed this as completed Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant