Skip to content

JsonFormat#printUnknownFIelds produce invalid JSON #57

Description

@georgeakulov

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions