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

JsonFormat#printUnknownFIelds produce invalid JSON #57

Open
George-A opened this issue Jul 29, 2019 · 0 comments
Open

JsonFormat#printUnknownFIelds produce invalid JSON #57

George-A opened this issue Jul 29, 2019 · 0 comments

Comments

@George-A
Copy link

This method may produce invalid json with hex numbers.
The convention on json:

http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf
Numbers

A number is a sequence of decimal digits with no superfluous leading zero. It may have a preceding minus sign (U+002D). It may have a fractional part prefixed by a decimal point (U+002E).It may have an exponent, prefixed by e(U+0065) or E(U+0045) and optionally +(U+002B) or –(U+002D). The digits are the code points U+0030 through U+0039

The json produced by this method not parsed by another Json libraries. For example jackson.

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

No branches or pull requests

1 participant