Skip to content

Commit 42791ab

Browse files
author
John J. Aylward
committed
Updates README to note that the parser does allow some invalid JSON
1 parent b3abaa5 commit 42791ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ in the form of get(), opt(), and put() API methods.
8080
Although 1.6 compatibility is currently supported, it is not a project goal and may be
8181
removed in some future release.
8282

83+
In compliance with RFC7169 page 10 section 9, the parser is more lax with what is valid
84+
JSON than the Generator. For Example, the tab character (U+0009) is allowed when reading
85+
JSON Text strings, but when output by the Generator, tab is properly converted to \t in
86+
the string. Other instances may occur where reading invalid JSON text does not cause an
87+
error to be generated. Malformed JSON Texts such as missing end " (quote) on strings or
88+
invalid number formats (1.2e6.3) will cause errors as such documents can not be read
89+
reliably.
90+
8391
Release history:
8492

8593
20160212 Java 1.6 compatibility, OSGi bundle. Contains the latest code as of 12 Feb, 2016.

0 commit comments

Comments
 (0)