Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

lee-gyu/json_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Json Parser Project

  • Purpose : studying to know json architecture and parsing algorithm (without any logical supports but it used standard library like ArrayList)

  • Language : Java

    ※ reference : https://www.json.org/json-ko.html (just to know the architecture and the rules to parse that)

  • Features

    • Providing a stream iterator such as memory, network, file etc. (It doesn't use lots of momery)
    • designed for expanding. (highly abstract classes)
    • Supporting for serialization and deserialization via both stream and string. (Json to Java Object, Java Object to Json String)
    • Providing caching string for preventing to waste memory.
  • todo list

    1. supporting annotations. (for serialization to an object and array types)
  • Example

JsonConverter parser = new JsonConverter(StandardCharsets.UTF_8);

try (FileInputStream is = new FileInputStream("../sample/generated.json")) {
    JsonArray ary = parser.parse(is);

    for (JsonValue value: ary) {
        System.out.println(value);
    }
}
  • Class Design

About

studying json parser lib.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages