com.alibaba.dubbo.common.json
Class JSON

java.lang.Object
  extended by com.alibaba.dubbo.common.json.JSON

Deprecated.

@Deprecated
public class JSON
extends Object

JSON.

Author:
qian.lei

Field Summary
static byte ARRAY_ITEM
          Deprecated.  
static char COLON
          Deprecated.  
static char COMMA
          Deprecated.  
static byte END
          Deprecated.  
static char LBRACE
          Deprecated.  
static char LSQUARE
          Deprecated.  
static String NULL
          Deprecated.  
static byte OBJECT_ITEM
          Deprecated.  
static byte OBJECT_VALUE
          Deprecated.  
static char QUOTE
          Deprecated.  
static char RBRACE
          Deprecated.  
static char RSQUARE
          Deprecated.  
static byte START
          Deprecated.  
 
Method Summary
static String json(Object obj)
          Deprecated. json string.
static String json(Object obj, String[] properties)
          Deprecated. json string.
static void json(Object obj, String[] properties, Writer writer)
          Deprecated.  
static void json(Object obj, String[] properties, Writer writer, boolean writeClass)
          Deprecated. write json.
static void json(Object obj, Writer writer)
          Deprecated. write json.
static void json(Object obj, Writer writer, boolean writeClass)
          Deprecated.  
static Object parse(Reader reader)
          Deprecated. parse json.
static Object[] parse(Reader reader, Class<?>[] types)
          Deprecated. parse json.
static
<T> T
parse(Reader reader, Class<T> type)
          Deprecated. parse json
static Object parse(Reader reader, JSONVisitor handler)
          Deprecated. parse json.
static Object parse(String json)
          Deprecated. parse json.
static Object[] parse(String json, Class<?>[] types)
          Deprecated. parse json.
static
<T> T
parse(String json, Class<T> type)
          Deprecated. parse json.
static Object parse(String json, JSONVisitor handler)
          Deprecated. parse json.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LBRACE

public static final char LBRACE
Deprecated. 
See Also:
Constant Field Values

RBRACE

public static final char RBRACE
Deprecated. 
See Also:
Constant Field Values

LSQUARE

public static final char LSQUARE
Deprecated. 
See Also:
Constant Field Values

RSQUARE

public static final char RSQUARE
Deprecated. 
See Also:
Constant Field Values

COMMA

public static final char COMMA
Deprecated. 
See Also:
Constant Field Values

COLON

public static final char COLON
Deprecated. 
See Also:
Constant Field Values

QUOTE

public static final char QUOTE
Deprecated. 
See Also:
Constant Field Values

NULL

public static final String NULL
Deprecated. 
See Also:
Constant Field Values

END

public static final byte END
Deprecated. 
See Also:
Constant Field Values

START

public static final byte START
Deprecated. 
See Also:
Constant Field Values

OBJECT_ITEM

public static final byte OBJECT_ITEM
Deprecated. 
See Also:
Constant Field Values

OBJECT_VALUE

public static final byte OBJECT_VALUE
Deprecated. 
See Also:
Constant Field Values

ARRAY_ITEM

public static final byte ARRAY_ITEM
Deprecated. 
See Also:
Constant Field Values
Method Detail

json

public static String json(Object obj)
                   throws IOException
Deprecated. 
json string.

Parameters:
obj - object.
Returns:
json string.
Throws:
IOException.
IOException

json

public static void json(Object obj,
                        Writer writer)
                 throws IOException
Deprecated. 
write json.

Parameters:
obj - object.
writer - writer.
Throws:
IOException.
IOException

json

public static void json(Object obj,
                        Writer writer,
                        boolean writeClass)
                 throws IOException
Deprecated. 
Throws:
IOException

json

public static String json(Object obj,
                          String[] properties)
                   throws IOException
Deprecated. 
json string.

Parameters:
obj - object.
properties - property name array.
Returns:
json string.
Throws:
IOException.
IOException

json

public static void json(Object obj,
                        String[] properties,
                        Writer writer)
                 throws IOException
Deprecated. 
Throws:
IOException

json

public static void json(Object obj,
                        String[] properties,
                        Writer writer,
                        boolean writeClass)
                 throws IOException
Deprecated. 
write json.

Parameters:
obj - object.
properties - property name array.
writer - writer.
Throws:
IOException.
IOException

parse

public static Object parse(String json)
                    throws ParseException
Deprecated. 
parse json.

Parameters:
json - json source.
Returns:
JSONObject or JSONArray or Boolean or Long or Double or String or null
Throws:
ParseException

parse

public static Object parse(Reader reader)
                    throws IOException,
                           ParseException
Deprecated. 
parse json.

Parameters:
reader - reader.
Returns:
JSONObject or JSONArray or Boolean or Long or Double or String or null
Throws:
IOException
ParseException

parse

public static <T> T parse(String json,
                          Class<T> type)
               throws ParseException
Deprecated. 
parse json.

Parameters:
json - json string.
type - target type.
Returns:
result.
Throws:
ParseException

parse

public static <T> T parse(Reader reader,
                          Class<T> type)
               throws IOException,
                      ParseException
Deprecated. 
parse json

Parameters:
reader - json source.
type - target type.
Returns:
result.
Throws:
IOException
ParseException

parse

public static Object[] parse(String json,
                             Class<?>[] types)
                      throws ParseException
Deprecated. 
parse json.

Parameters:
json - json string.
types - target type array.
Returns:
result.
Throws:
ParseException

parse

public static Object[] parse(Reader reader,
                             Class<?>[] types)
                      throws IOException,
                             ParseException
Deprecated. 
parse json.

Parameters:
reader - json source.
types - target type array.
Returns:
result.
Throws:
IOException
ParseException

parse

public static Object parse(String json,
                           JSONVisitor handler)
                    throws ParseException
Deprecated. 
parse json.

Parameters:
json - json string.
handler - handler.
Returns:
result.
Throws:
ParseException

parse

public static Object parse(Reader reader,
                           JSONVisitor handler)
                    throws IOException,
                           ParseException
Deprecated. 
parse json.

Parameters:
reader - json source.
handler - handler.
Returns:
resule.
Throws:
IOException
ParseException


Copyright © 2012–2017 Alibaba. All rights reserved.