hyson - d2fest

7
COMPACT JSON ORM HySON

Upload: osori-hanyang

Post on 11-Apr-2017

88 views

Category:

Software


0 download

TRANSCRIPT

Page 1: hySON - D2Fest

COMPACT JSON ORM

HySON

Page 2: hySON - D2Fest

JSON vs XML as Percentage

The use of JSON Format is increasing.

http://www.cs.tufts.edu/comp/150IDS/final_papers/lizzied.3/FinalReport.html

Page 3: hySON - D2Fest

JAVA ObjectJSON Formatstring

The parsing process is required.

USING JSON Format in JAVA

parsing

Page 4: hySON - D2Fest

use JSONParser (https://github.com/douglascrockford/JSON-java)

{a: 10,b: “hySON!”,c: [2, 3, 4],d: [5, 6],temps: [{

a: "hhh",b: "aaa",c: "jjjj"

}, {a: "hhh2",b: "aaa2",c: "jjjj2"

}, {a: "hhh3",b: "aaa3",c: "jjjj3"

}]

}

parsing

Page 5: hySON - D2Fest

BUT use HySON Library!

HySON COMPACT

One Line!!

Page 6: hySON - D2Fest

HySON(Goal) GSONJSONParser

INSERT YOUR MAIN TILTE

Multi Line Parsing One Line Parsing One Line ParsingGeneric Type Parsing

is also aimed at providing simple

parsing in the same format.

TypeToken is required for Generic

Type Parsing.

Page 7: hySON - D2Fest

https://github.com/HyOsori/hySON-JavaTHANK YOU