A JSON Parser written in Java.
- tokenizer: Code for lexical analysis (token generation)
- tokens: Definitions for Tokens
- value: Code for Java representation of JSON values
- parser: Code for parsing list of generated tokens
- Printer: Code for pretty-printing/string-conversion of JSON values
Note: Sepration of tokenization and parsing is not necessary, it is done for convinience and learning purpose.
Tested the code with test site present here: http://www.json.org/JSON_checker/test.zip?trk=article-ssr-frontend-pulse_little-text-block
Only Failure Cases passing are following:
-
fail1: No restriction on input being only Object/Array
-
fail18: No depth restriction on input