Skip to content

Commit

Permalink
Merge pull request #481 from johnjaylward/ClarifyParserExceptionsInRe…
Browse files Browse the repository at this point in the history
…adMe

clarifies exception that the parser makes when reading JSON
  • Loading branch information
stleary committed Aug 14, 2019
2 parents 115f8b6 + b044b7d commit c3ea024
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -102,7 +102,13 @@ JSON Text strings, but when output by the Generator, tab is properly converted t
the string. Other instances may occur where reading invalid JSON text does not cause an
error to be generated. Malformed JSON Texts such as missing end " (quote) on strings or
invalid number formats (1.2e6.3) will cause errors as such documents can not be read
reliably.
reliably.

Some notible exceptions that the JSON Parser in this library accepts are:
* Unquoted keys `{ key: "value" }`
* Unquoted values `{ "key": value }`
* Unescaped literals like "tab" in string values `{ "key": "value with an unescaped tab" }`
* Numbers out of range for `Double` or `Long` are parsed as strings

Release history:

Expand Down

0 comments on commit c3ea024

Please sign in to comment.