Skip to content

diamond2016/json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Parser This is a JSON parser as from Coding Challenges. This process involves parsing the JSON string, extracting the tokens, and then constructing the data structure based on the parsed tokens. at the presente state only parsing is made not structure.

My Implementation This implementation is written in java with maven structure. This implementation does not fulfill test 18, 25 37 of final tests (see StepFinalTest5,java), because I believe that should be accettable for test cases.

source Original ideas of Lexer and Parser from literature. The challenge: https://codingchallenges.fyi/challenges/challenge-json-parser/ Build Your Own JSON Parser.

Last version Version 2.0 implements the AST tree for retrieval and navigation in JSON file. For example:

{
  "theme": "Default",
  "selectedAuthType": "oauth-personal",
  "preferredEditor": "vscode"
}
JsonObjectNode node = parser.jObject(); // or use jPayload()

JsonObjectNode{children={selectedAuthType=JsonStringNode{oauth-personal}, preferredEditor=JsonStringNode{vscode}, theme=JsonStringNode{Default}}}

About

A Json parser in java

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages