@Test public void testDeserializeWithComment() { String s = "{" + "\"a\": null, " \"b\":1, \n" + " \"c\":1, \n" + " \"d\":9999999999" + "}"; LOGGER.info(s); Map json = (Map) JSONSerializer.deserialize(s); Assert.assertNotNull(json); Assert.assertEquals(json.get("a"), null); Assert.assertEquals(json.get("b"), 1); Assert.assertEquals(json.get("c"), 1); Assert.assertEquals(json.get("d"), 9999999999l); }
public static Object deserialize(String json) throws ParseException { return new JSONSerializer(json).nextValue(); }
JSONSerializer { public static Object deserialize(String json) throws ParseException { return new JSONSerializer(json).nextValue(); } }
JSONSerializer { public static Object deserialize(String json) throws ParseException { return new JSONSerializer(json).nextValue(); } protected  JSONSerializer(String string); }
JSONSerializer { public static Object deserialize(String json) throws ParseException { return new JSONSerializer(json).nextValue(); } protected  JSONSerializer(String string); static String serialize(Object object); static String serialize(Object object, boolean addType); static Object deserialize(String json); }
JSONSerializer { public static Object deserialize(String json) throws ParseException { return new JSONSerializer(json).nextValue(); } protected  JSONSerializer(String string); static String serialize(Object object); static String serialize(Object object, boolean addType); static Object deserialize(String json);  }