public class JSONObject extends Object
Constructor and Description |
---|
JSONObject() |
Modifier and Type | Method and Description |
---|---|
static String |
escape(String s)
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters
(U+0000 through U+001F).
|
static String |
toJSONString(Map<?,?> map)
Convert a map to JSON text.
|
static String |
toString(String key,
Object value) |
static void |
writeJSONString(Map<?,?> map,
Writer out)
Encode a map into JSON text and write it to out.
|
public static void writeJSONString(Map<?,?> map, Writer out) throws IOException
IOException
JSONValue.writeJSONString(Object, Writer)
public static String toJSONString(Map<?,?> map)
JSONValue.toJSONString(Object)
public static String escape(String s)
JSONValue.escape(String)
Copyright © 2013. All Rights Reserved.