类 JSON


  • public class JSON
    extends 
    已过时。
    JSON.
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static byte ARRAY_ITEM
      已过时。
       
      static char COLON
      已过时。
       
      static char COMMA
      已过时。
       
      static byte END
      已过时。
       
      static char LBRACE
      已过时。
       
      static char LSQUARE
      已过时。
       
      static NULL
      已过时。
       
      static byte OBJECT_ITEM
      已过时。
       
      static byte OBJECT_VALUE
      已过时。
       
      static char QUOTE
      已过时。
       
      static char RBRACE
      已过时。
       
      static char RSQUARE
      已过时。
       
      static byte START
      已过时。
       
    • 方法概要

      所有方法 静态方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      static  obj)
      已过时。
      json string.
      static void  obj,  writer)
      已过时。
      write json.
      static void  obj,  writer, boolean writeClass)
      已过时。
       
      static  obj, [] properties)
      已过时。
      json string.
      static void  obj, [] properties,  writer)
      已过时。
       
      static void  obj, [] properties,  writer, boolean writeClass)
      已过时。
      write json.
      static  reader)
      已过时。
      parse json.
      static  reader, JSONVisitor handler)
      已过时。
      parse json.
      static []  reader, <?>[] types)
      已过时。
      parse json.
      static <T> T  reader, <T> type)
      已过时。
      parse json
      static  json)
      已过时。
      parse json.
      static  json, JSONVisitor handler)
      已过时。
      parse json.
      static []  json, <?>[] types)
      已过时。
      parse json.
      static <T> T  json, <T> type)
      已过时。
      parse json.
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 字段详细资料

      • LBRACE

        public static final char LBRACE
        已过时。
        另请参阅:
        常量字段值
      • RBRACE

        public static final char RBRACE
        已过时。
        另请参阅:
        常量字段值
      • LSQUARE

        public static final char LSQUARE
        已过时。
        另请参阅:
        常量字段值
      • RSQUARE

        public static final char RSQUARE
        已过时。
        另请参阅:
        常量字段值
      • COMMA

        public static final char COMMA
        已过时。
        另请参阅:
        常量字段值
      • COLON

        public static final char COLON
        已过时。
        另请参阅:
        常量字段值
      • QUOTE

        public static final char QUOTE
        已过时。
        另请参阅:
        常量字段值
      • NULL

        public static final  NULL
        已过时。
        另请参阅:
        常量字段值
      • END

        public static final byte END
        已过时。
        另请参阅:
        常量字段值
      • START

        public static final byte START
        已过时。
        另请参阅:
        常量字段值
      • OBJECT_ITEM

        public static final byte OBJECT_ITEM
        已过时。
        另请参阅:
        常量字段值
      • OBJECT_VALUE

        public static final byte OBJECT_VALUE
        已过时。
        另请参阅:
        常量字段值
      • ARRAY_ITEM

        public static final byte ARRAY_ITEM
        已过时。
        另请参阅:
        常量字段值
    • 方法详细资料

      • json

        public static  json​( obj)
                           throws 
        已过时。
        json string.
        参数:
        obj - object.
        返回:
        json string.
        抛出:
      • json

        public static void json​( obj,
                                 writer)
                         throws 
        已过时。
        write json.
        参数:
        obj - object.
        writer - writer.
        抛出:
      • json

        public static void json​( obj,
                                 writer,
                                boolean writeClass)
                         throws 
        已过时。
        抛出:
      • json

        public static  json​( obj,
                                  [] properties)
                           throws 
        已过时。
        json string.
        参数:
        obj - object.
        properties - property name array.
        返回:
        json string.
        抛出:
      • json

        public static void json​( obj,
                                [] properties,
                                 writer)
                         throws 
        已过时。
        抛出:
      • json

        public static void json​( obj,
                                [] properties,
                                 writer,
                                boolean writeClass)
                         throws 
        已过时。
        write json.
        参数:
        obj - object.
        properties - property name array.
        writer - writer.
        抛出:
      • parse

        public static  parse​( json)
                            throws ParseException
        已过时。
        parse json.
        参数:
        json - json source.
        返回:
        JSONObject or JSONArray or Boolean or Long or Double or String or null
        抛出:
        ParseException
      • parse

        public static  parse​( reader)
                            throws ,
                                   ParseException
        已过时。
        parse json.
        参数:
        reader - reader.
        返回:
        JSONObject or JSONArray or Boolean or Long or Double or String or null
        抛出:
        ParseException
      • parse

        public static <T> T parse​( json,
                                  <T> type)
                           throws ParseException
        已过时。
        parse json.
        参数:
        json - json string.
        type - target type.
        返回:
        result.
        抛出:
        ParseException
      • parse

        public static <T> T parse​( reader,
                                  <T> type)
                           throws ,
                                  ParseException
        已过时。
        parse json
        参数:
        reader - json source.
        type - target type.
        返回:
        result.
        抛出:
        ParseException
      • parse

        public static [] parse​( json,
                                     <?>[] types)
                              throws ParseException
        已过时。
        parse json.
        参数:
        json - json string.
        types - target type array.
        返回:
        result.
        抛出:
        ParseException
      • parse

        public static [] parse​( reader,
                                     <?>[] types)
                              throws ,
                                     ParseException
        已过时。
        parse json.
        参数:
        reader - json source.
        types - target type array.
        返回:
        result.
        抛出:
        ParseException
      • parse

        public static  parse​( json,
                                   JSONVisitor handler)
                            throws ParseException
        已过时。
        parse json.
        参数:
        json - json string.
        handler - handler.
        返回:
        result.
        抛出:
        ParseException
      • parse

        public static  parse​( reader,
                                   JSONVisitor handler)
                            throws ,
                                   ParseException
        已过时。
        parse json.
        参数:
        reader - json source.
        handler - handler.
        返回:
        resule.
        抛出:
        ParseException