jjenkov / parsers-in-java

A JSON parser implemented in Java, to show how to implement high performance parsers in Java.
107 stars 31 forks source link

JsonParser have error in parse() #5

Closed ghost closed 8 years ago

ghost commented 8 years ago

In parse() method you assert that the json stream to parse is always an object, but the specification of the format says that json stream can be an array or an object.

jjenkov commented 8 years ago

Hi Patrick, thank you for the feedback. However, I won't be correcting that. The parser serves as a proof-of-concept implementation for an article on InfoQ in Dec. 2013. That's almost 2 years back. A lot has happened to JSON parsers in the mean time.

If you need the array support, fork-and-fix :-)

ghost commented 8 years ago

Ok, thank's a lot for your interest.