资 源 简 介
A simple JSON parser and serializer written in Java.
```
JsonParser parser = new JsonParser();
Map object = parser.parseObject("{"a": 1, "b": true}");
List array = parser.parseArray("[4,3,false,null,[],{}]");
String string = parser.parseString(""hello world"");
Number number = parser.parseNumber("-1.0e-5");
Boolean bool = parser.parseBoolean("true");
Object nil = parser.parseNull("null");
JsonSerializer serializer = new JsonSerializer();
String jsonNull = serializer.serializeNull();
String jsonBoolean = serializer.serialize(false);
String jsonNumber = serializer.serialize(1);
String jsonString = serializer.serialize("hello");
String jsonArray = serializer.serialize(Arrays.asList(1,2,3));
String jsonObject = serializer.serialize(new HashMap() {{ put("a", 1); put("b", true); }});
```