public class JSONValue
extends java.lang.Object
| Constructor and Description |
|---|
JSONValue() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escape(java.lang.String s)
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters
(U+0000 through U+001F).
|
static java.lang.Object |
parseWithException(java.io.Reader in)
Parse JSON text into java object from the input source.
|
static java.lang.Object |
parseWithException(java.lang.String s) |
static java.lang.String |
toJSONString(java.lang.Object value)
Convert an object to JSON text.
|
static void |
writeJSONString(java.lang.Object value,
java.io.Writer out)
Encode an object into JSON text and write it to out.
|
public static void writeJSONString(java.lang.Object value,
java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionJSONObject.writeJSONString(Map, Writer),
JSONArray.writeJSONString(List, Writer)public static java.lang.String toJSONString(java.lang.Object value)
JSONObject.toJSONString(Map),
JSONArray.toJSONString(List)public static java.lang.String escape(java.lang.String s)
public static java.lang.Object parseWithException(java.io.Reader in)
throws java.io.IOException,
ParseException
java.io.IOExceptionParseExceptionpublic static java.lang.Object parseWithException(java.lang.String s)
throws ParseException
ParseExceptionCopyright © 2018. All Rights Reserved.