test_class.declarator: DEFAULT_BYTES = {3, 12, 14, 41, 12, 2, 3, 12, 4, 67, 23}
test_class.modifier: static
test_class.original_string: static byte[] DEFAULT_BYTES = {3, 12, 14, 41, 12, 2, 3, 12, 4, 67, 23};
test_class.type: byte[]
test_class.var_name: DEFAULT_BYTES
test_class.declarator: DEFAULT_$$ = 152
test_class.modifier: static
test_class.original_string: static int DEFAULT_$$ = 152;
test_class.type: int
test_class.var_name: DEFAULT_
test_class.file: dubbo-common/src/test/java/com/alibaba/dubbo/common/json/JSONTest.java
test_class.identifier: JSONTest
test_case.body: @Test
      @SuppressWarnings("unchecked")
      public void testParse2Class() throws Exception {
          int[] o1 = {1, 2, 3, 4, 5}, o2 = JSON.parse("[1.2,2,3,4,5]", int[].class);
          assertEquals(o2.length, 5);
          for (int i = 0; i < 5; i++)
              assertEquals(o1[i], o2[i]);
  
          List l1 = (List) JSON.parse("[1.2,2,3,4,5]", List.class);
          assertEquals(l1.size(), 5);
          for (int i = 0; i < 5; i++)
              assertEquals(o1[i], ((Number) l1.get(i)).intValue());
  
          Bean bean = JSON.parse("{name:'qianlei',array:[1,2,3,4,98.123],displayName:'钱磊',$$:214726,$b:TRUE}", Bean.class);
          assertEquals(bean.getName(), "qianlei");
          assertEquals(bean.getDisplayName(), "钱磊");
          assertEquals(bean.array.length, 5);
          assertEquals(bean.$$, 214726);
          assertEquals(bean.$b, true);
  
          for (int i = 0; i < 10000; i++)
              JSON.parse("{name:'qianlei',array:[1,2,3,4,98.123],displayName:'钱磊'}", Bean1.class);
  
          long now = System.currentTimeMillis();
          for (int i = 0; i < 10000; i++)
              JSON.parse("{name:'qianlei',array:[1,2,3,4,98.123],displayName:'钱磊'}", Bean1.class);
          System.out.println("parse to Class 10000 times in: " + (System.currentTimeMillis() - now));
      }
test_case.class_method_signature: JSONTest.testParse2Class()
test_case.full_signature: @Test @SuppressWarnings("unchecked") public void testParse2Class()
test_case.identifier: testParse2Class
test_case.invocations: parse assertEquals assertEquals parse assertEquals size assertEquals intValue get parse assertEquals getName assertEquals getDisplayName assertEquals assertEquals assertEquals parse currentTimeMillis parse println currentTimeMillis
test_case.modifiers: @Test @SuppressWarnings("unchecked") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParse2Class()
focal_class.declarator: LBRACE = '{'
focal_class.modifier: public static final
focal_class.original_string: public static final char LBRACE = '{', RBRACE = '}';
focal_class.type: char
focal_class.var_name: LBRACE
focal_class.declarator: LSQUARE = '['
focal_class.modifier: public static final
focal_class.original_string: public static final char LSQUARE = '[', RSQUARE = ']';
focal_class.type: char
focal_class.var_name: LSQUARE
focal_class.declarator: COMMA = ','
focal_class.modifier: public static final
focal_class.original_string: public static final char COMMA = ',', COLON = ':', QUOTE = '"';
focal_class.type: char
focal_class.var_name: COMMA
focal_class.declarator: NULL = "null"
focal_class.modifier: public static final
focal_class.original_string: public static final String NULL = "null";
focal_class.type: String
focal_class.var_name: NULL
focal_class.declarator: END = 0
focal_class.modifier: public static final
focal_class.original_string: public static final byte END = 0, START = 1, OBJECT_ITEM = 2, OBJECT_VALUE = 3, ARRAY_ITEM = 4;
focal_class.type: byte
focal_class.var_name: END
focal_class.declarator: DEFAULT_CONVERTER = new GenericJSONConverter()
focal_class.modifier: static final
focal_class.original_string: static final JSONConverter DEFAULT_CONVERTER = new GenericJSONConverter();
focal_class.type: JSONConverter
focal_class.var_name: DEFAULT_CONVERTER
focal_class.file: dubbo-common/src/main/java/com/alibaba/dubbo/common/json/JSON.java
focal_class.identifier: JSON
focal_class.class_method_signature: JSON.JSON()
focal_class.full_signature: private  JSON()
focal_class.identifier: JSON
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JSON()
focal_class.class_method_signature: JSON.json(Object obj)
focal_class.full_signature: public static String json(Object obj)
focal_class.identifier: json
focal_class.modifiers: public static
focal_class.parameters: (Object obj)
focal_class.return: String
focal_class.signature: String json(Object obj)
focal_class.class_method_signature: JSON.json(Object obj, Writer writer)
focal_class.full_signature: public static void json(Object obj, Writer writer)
focal_class.identifier: json
focal_class.modifiers: public static
focal_class.parameters: (Object obj, Writer writer)
focal_class.return: void
focal_class.signature: void json(Object obj, Writer writer)
focal_class.class_method_signature: JSON.json(Object obj, Writer writer, boolean writeClass)
focal_class.full_signature: public static void json(Object obj, Writer writer, boolean writeClass)
focal_class.identifier: json
focal_class.modifiers: public static
focal_class.parameters: (Object obj, Writer writer, boolean writeClass)
focal_class.return: void
focal_class.signature: void json(Object obj, Writer writer, boolean writeClass)
focal_class.class_method_signature: JSON.json(Object obj, String[] properties)
focal_class.full_signature: public static String json(Object obj, String[] properties)
focal_class.identifier: json
focal_class.modifiers: public static
focal_class.parameters: (Object obj, String[] properties)
focal_class.return: String
focal_class.signature: String json(Object obj, String[] properties)
focal_class.class_method_signature: JSON.json(Object obj, final String[] properties, Writer writer)
focal_class.full_signature: public static void json(Object obj, final String[] properties, Writer writer)
focal_class.identifier: json
focal_class.modifiers: public static
focal_class.parameters: (Object obj, final String[] properties, Writer writer)
focal_class.return: void
focal_class.signature: void json(Object obj, final String[] properties, Writer writer)
focal_class.class_method_signature: JSON.json(Object obj, final String[] properties, Writer writer, boolean writeClass)
focal_class.full_signature: public static void json(Object obj, final String[] properties, Writer writer, boolean writeClass)
focal_class.identifier: json
focal_class.modifiers: public static
focal_class.parameters: (Object obj, final String[] properties, Writer writer, boolean writeClass)
focal_class.return: void
focal_class.signature: void json(Object obj, final String[] properties, Writer writer, boolean writeClass)
focal_class.class_method_signature: JSON.json(Object obj, JSONWriter jb, boolean writeClass)
focal_class.full_signature: private static void json(Object obj, JSONWriter jb, boolean writeClass)
focal_class.identifier: json
focal_class.modifiers: private static
focal_class.parameters: (Object obj, JSONWriter jb, boolean writeClass)
focal_class.return: void
focal_class.signature: void json(Object obj, JSONWriter jb, boolean writeClass)
focal_class.class_method_signature: JSON.json(Object obj, String[] properties, JSONWriter jb, boolean writeClass)
focal_class.full_signature: private static void json(Object obj, String[] properties, JSONWriter jb, boolean writeClass)
focal_class.identifier: json
focal_class.modifiers: private static
focal_class.parameters: (Object obj, String[] properties, JSONWriter jb, boolean writeClass)
focal_class.return: void
focal_class.signature: void json(Object obj, String[] properties, JSONWriter jb, boolean writeClass)
focal_class.class_method_signature: JSON.parse(String json)
focal_class.full_signature: public static Object parse(String json)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String json)
focal_class.return: Object
focal_class.signature: Object parse(String json)
focal_class.class_method_signature: JSON.parse(Reader reader)
focal_class.full_signature: public static Object parse(Reader reader)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (Reader reader)
focal_class.return: Object
focal_class.signature: Object parse(Reader reader)
focal_class.class_method_signature: JSON.parse(String json, Class<T> type)
focal_class.full_signature: public static T parse(String json, Class<T> type)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String json, Class<T> type)
focal_class.return: T
focal_class.signature: T parse(String json, Class<T> type)
focal_class.class_method_signature: JSON.parse(Reader reader, Class<T> type)
focal_class.full_signature: @SuppressWarnings("unchecked") public static T parse(Reader reader, Class<T> type)
focal_class.identifier: parse
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (Reader reader, Class<T> type)
focal_class.return: T
focal_class.signature: T parse(Reader reader, Class<T> type)
focal_class.class_method_signature: JSON.parse(String json, Class<?>[] types)
focal_class.full_signature: public static Object[] parse(String json, Class<?>[] types)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String json, Class<?>[] types)
focal_class.return: Object[]
focal_class.signature: Object[] parse(String json, Class<?>[] types)
focal_class.class_method_signature: JSON.parse(Reader reader, Class<?>[] types)
focal_class.full_signature: public static Object[] parse(Reader reader, Class<?>[] types)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (Reader reader, Class<?>[] types)
focal_class.return: Object[]
focal_class.signature: Object[] parse(Reader reader, Class<?>[] types)
focal_class.class_method_signature: JSON.parse(String json, JSONVisitor handler)
focal_class.full_signature: public static Object parse(String json, JSONVisitor handler)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String json, JSONVisitor handler)
focal_class.return: Object
focal_class.signature: Object parse(String json, JSONVisitor handler)
focal_class.class_method_signature: JSON.parse(Reader reader, JSONVisitor handler)
focal_class.full_signature: public static Object parse(Reader reader, JSONVisitor handler)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (Reader reader, JSONVisitor handler)
focal_class.return: Object
focal_class.signature: Object parse(Reader reader, JSONVisitor handler)
focal_class.class_method_signature: JSON.parse(Reader reader, int expect)
focal_class.full_signature: private static Object parse(Reader reader, int expect)
focal_class.identifier: parse
focal_class.modifiers: private static
focal_class.parameters: (Reader reader, int expect)
focal_class.return: Object
focal_class.signature: Object parse(Reader reader, int expect)
focal_class.class_method_signature: JSON.parse(Reader reader, JSONVisitor handler, int expect)
focal_class.full_signature: private static Object parse(Reader reader, JSONVisitor handler, int expect)
focal_class.identifier: parse
focal_class.modifiers: private static
focal_class.parameters: (Reader reader, JSONVisitor handler, int expect)
focal_class.return: Object
focal_class.signature: Object parse(Reader reader, JSONVisitor handler, int expect)
focal_method.body: public static Object parse(String json) throws ParseException {
          StringReader reader = new StringReader(json);
          try {
              return parse(reader);
          } catch (IOException e) {
              throw new ParseException(e.getMessage());
          } finally {
              reader.close();
          }
      }
focal_method.class_method_signature: JSON.parse(String json)
focal_method.full_signature: public static Object parse(String json)
focal_method.identifier: parse
focal_method.invocations: parse getMessage close
focal_method.modifiers: public static
focal_method.parameters: (String json)
focal_method.return: Object
focal_method.signature: Object parse(String json)