Skip to content

A simple Java toolkit for JSON. Modified to remove a bug in the lexer which prevents streaming, and fix raw type warnings.

License

Notifications You must be signed in to change notification settings

cantonios/json-simple

 
 

Repository files navigation

Modified version of json-simple to remove raw types, and better handling of stream readers.

The original lexer has an issue where it consumes characters that may not be parsed from within JSONParser.  If the JSONParser completes before exhausting the internal buffer within the lexer, then those extra characters are discarded and lost.  This makes stream processing of JSON responses impossible.

The code has been modified so that characters in the lexer are consumed only as they are processed.  To improve reading efficiency, wrap any readers with a BufferedReader.  This modification should allow sequential processing of JSON objects coming from the same Reader.

Original project site:
http://code.google.com/p/json-simple/

Original GitHub clone:
https://github.com/fangyidong/json-simple.git

About

A simple Java toolkit for JSON. Modified to remove a bug in the lexer which prevents streaming, and fix raw type warnings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%