-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
57 lines (34 loc) · 1.33 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
JSON 0.2, from TwoLattes - http://code.twolattes.com
* required Jars
JSON-0.2.jar
asm-2.2.3.jar
asm-attrs-2.2.3.jar
asm-commons-2.2.3.jar
the other jars are competing libraries used to ensure JsonMarshaller is the fastest library!
* optional Jar
junit-4.1.jar
CHANGELOG 0.2
-------------
- corrected recursive classes parsing bug
+ added support for user defined types
+ added support for java.util.Map
+ added support for JSPON marshalling (unmarshalling not yet supported)
* quick help
To compile your code with JsonMarshaller, sure to add the jars to your
classpath. To try out little examples, this line should do
javac -cp .:lib/JSON-0.1.jar:lib/asm-2.2.3.jar:lib/asm-attrs-2.2.3.jar:lib/asm-commons-2.2.3.jar *.java
For examples, you can browse the included tests. Look at
srctest/com/twolattes/json/User.java
srctest/com/twolattes/json/Email.java
for instance.
* tests
To run the tests, you'll need JUnit 4.1 (included).
* questions
pascal / cs / stanford . edu
replace the first / by the typical sign and the second one by a dot.
* ASM website
http://asm.objectweb.org
* JSON parser
http://www.json.org
Note: we use a modified version that corrects a few minor bugs and adds
some functionality required by our JsonMarshaller.