@Test public void testDeserializeSpecialCharter() { String s = "{\"a\": \"\\b\\t\\n\\f\\r\\u771f\\u7684\\u5417\\uff1f\\u54c8\\u54c8\\u0068\\u0061\\u0068\\u0061\" }"; Map json = (Map) JSONSerializer.deserialize(s); Assert.assertEquals(json.get("a"), "\b\t\n\f\r真的吗？哈哈haha"); }
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);  }