JsonObject { public static JsonObject fromJson(String json, boolean respectOrder) { JsopTokenizer tokenizer = new JsopTokenizer(json); tokenizer.read('{'); try { return create(tokenizer, respectOrder); } finally { tokenizer.read(JsopReader.END); } } JsonObject();  JsonObject(boolean respectOrder); static JsonObject fromJson(String json, boolean respectOrder); static JsonObject create(JsopTokenizer t, boolean respectOrder); static JsonObject create(JsopTokenizer t); void toJson(JsopBuilder buf); Map<String, String> getProperties(); Map<String, JsonObject> getChildren(); @Override String toString();  }
@Test public void fromJson() { JsonObject a = JsonObject.fromJson(" { } ", false); assertEquals("{}", a.toString()); JsonObject b = JsonObject.fromJson("{\"az\": 1, \"b\": [2, 3], \"c\": null, \"d\": {}}", true); assertEquals("{\n" + " \"az\": 1,\n" + " \"b\": [2, 3],\n" + " \"c\": null,\n" + " \"d\": {}\n" + "}", b.toString()); assertEquals("{az=1, b=[2, 3], c=null}", b.getProperties().toString()); assertEquals("{d={}}", b.getChildren().toString()); }