|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minidev.json.JSONValue
public class JSONValue
| Constructor Summary | |
|---|---|
JSONValue()
|
|
| Method Summary | |
|---|---|
static String |
escape(String s)
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F). |
static void |
escape(String s,
Appendable ap)
|
static Object |
parse(Reader in)
Parse JSON text into java object from the input source. |
static Object |
parse(String s)
|
static Object |
parseWithException(Reader in)
Parse JSON text into java object from the input source. |
static Object |
parseWithException(String s)
|
static String |
toJSONString(Object value)
Convert an object to JSON text. |
static void |
writeJSONString(Object value,
Appendable out)
Encode an object into JSON text and write it to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONValue()
| Method Detail |
|---|
public static Object parse(Reader in)
JSONParserStream.parse(Reader),
parseWithException(Reader)public static Object parse(String s)
public static Object parseWithException(Reader in)
throws IOException,
ParseException
IOException
ParseExceptionJSONParser
public static Object parseWithException(String s)
throws ParseException
ParseException
public static void writeJSONString(Object value,
Appendable out)
throws IOException
If this object is a Map or a List, and it's also a JSONStreamAware or a JSONAware, JSONStreamAware or JSONAware will be considered firstly.
IOExceptionJSONObject.writeJSONString(Map, Appendable),
JSONArray.writeJSONString(List, Appendable)public static String toJSONString(Object value)
If this object is a Map or a List, and it's also a JSONAware, JSONAware will be considered firstly.
JSONObject.toJSONString(Map),
JSONArray.toJSONString(List)public static String escape(String s)
public static void escape(String s,
Appendable ap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||