类 JSON
- java.lang.Object
-
- com.alibaba.dubbo.common.json.JSON
-
@Deprecated public class JSON extends Object
已过时。JSON.
-
-
字段概要
字段 修饰符和类型 字段 说明 static byteARRAY_ITEM已过时。static charCOLON已过时。static charCOMMA已过时。static byteEND已过时。static charLBRACE已过时。static charLSQUARE已过时。static StringNULL已过时。static byteOBJECT_ITEM已过时。static byteOBJECT_VALUE已过时。static charQUOTE已过时。static charRBRACE已过时。static charRSQUARE已过时。static byteSTART已过时。
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static Stringjson(Object obj)已过时。json string.static voidjson(Object obj, Writer writer)已过时。write json.static voidjson(Object obj, Writer writer, boolean writeClass)已过时。static Stringjson(Object obj, String[] properties)已过时。json string.static voidjson(Object obj, String[] properties, Writer writer)已过时。static voidjson(Object obj, String[] properties, Writer writer, boolean writeClass)已过时。write json.static Objectparse(Reader reader)已过时。parse json.static Objectparse(Reader reader, JSONVisitor handler)已过时。parse json.static Object[]parse(Reader reader, Class<?>[] types)已过时。parse json.static <T> Tparse(Reader reader, Class<T> type)已过时。parse jsonstatic Objectparse(String json)已过时。parse json.static Objectparse(String json, JSONVisitor handler)已过时。parse json.static Object[]parse(String json, Class<?>[] types)已过时。parse json.static <T> Tparse(String json, Class<T> type)已过时。parse json.
-
-
-
字段详细资料
-
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
已过时。- 另请参阅:
- 常量字段值
-
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 String json(Object obj) throws IOException
已过时。json string.- 参数:
obj- object.- 返回:
- json string.
- 抛出:
IOException
-
json
public static void json(Object obj, Writer writer) throws IOException
已过时。write json.- 参数:
obj- object.writer- writer.- 抛出:
IOException
-
json
public static void json(Object obj, Writer writer, boolean writeClass) throws IOException
已过时。- 抛出:
IOException
-
json
public static String json(Object obj, String[] properties) throws IOException
已过时。json string.- 参数:
obj- object.properties- property name array.- 返回:
- json string.
- 抛出:
IOException
-
json
public static void json(Object obj, String[] properties, Writer writer) throws IOException
已过时。- 抛出:
IOException
-
json
public static void json(Object obj, String[] properties, Writer writer, boolean writeClass) throws IOException
已过时。write json.- 参数:
obj- object.properties- property name array.writer- writer.- 抛出:
IOException
-
parse
public static Object parse(String 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 Object parse(Reader reader) throws IOException, ParseException
已过时。parse json.- 参数:
reader- reader.- 返回:
- JSONObject or JSONArray or Boolean or Long or Double or String or null
- 抛出:
IOExceptionParseException
-
parse
public static <T> T parse(String json, Class<T> type) throws ParseException
已过时。parse json.- 参数:
json- json string.type- target type.- 返回:
- result.
- 抛出:
ParseException
-
parse
public static <T> T parse(Reader reader, Class<T> type) throws IOException, ParseException
已过时。parse json- 参数:
reader- json source.type- target type.- 返回:
- result.
- 抛出:
IOExceptionParseException
-
parse
public static Object[] parse(String json, Class<?>[] types) throws ParseException
已过时。parse json.- 参数:
json- json string.types- target type array.- 返回:
- result.
- 抛出:
ParseException
-
parse
public static Object[] parse(Reader reader, Class<?>[] types) throws IOException, ParseException
已过时。parse json.- 参数:
reader- json source.types- target type array.- 返回:
- result.
- 抛出:
IOExceptionParseException
-
parse
public static Object parse(String json, JSONVisitor handler) throws ParseException
已过时。parse json.- 参数:
json- json string.handler- handler.- 返回:
- result.
- 抛出:
ParseException
-
parse
public static Object parse(Reader reader, JSONVisitor handler) throws IOException, ParseException
已过时。parse json.- 参数:
reader- json source.handler- handler.- 返回:
- resule.
- 抛出:
IOExceptionParseException
-
-