Package | Description |
---|---|
net.minidev.json | |
net.minidev.json.parser | |
net.minidev.json.reader |
Modifier and Type | Field | Description |
---|---|---|
static JSONStyle |
JSONValue.COMPRESSION |
Global default compression type
|
static JSONStyle |
JSONStyle.LT_COMPRESS |
|
static JSONStyle |
JSONStyle.MAX_COMPRESS |
|
static JSONStyle |
JSONStyle.NO_COMPRESS |
Modifier and Type | Method | Description |
---|---|---|
static String |
JSONValue.compress(String input,
JSONStyle style) |
Reformat Json input keeping element order
|
static void |
JSONValue.escape(String s,
Appendable ap,
JSONStyle compression) |
|
static String |
JSONValue.escape(String s,
JSONStyle compression) |
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters
(U+0000 through U+001F).
|
static String |
JSONArray.toJSONString(List<? extends Object> list,
JSONStyle compression) |
Convert a list to JSON text.
|
String |
JSONArray.toJSONString(JSONStyle compression) |
|
String |
JSONAwareEx.toJSONString(JSONStyle compression) |
|
static String |
JSONObject.toJSONString(Map<String,? extends Object> map,
JSONStyle compression) |
Convert a map to JSON text.
|
String |
JSONObject.toJSONString(JSONStyle compression) |
|
static String |
JSONValue.toJSONString(Object value,
JSONStyle compression) |
Convert an object to JSON text.
|
String |
JSONArray.toString(JSONStyle compression) |
JSONAwareEx inferface
|
String |
JSONObject.toString(JSONStyle compression) |
|
static void |
JSONObject.writeJSON(Map<String,? extends Object> map,
Appendable out,
JSONStyle compression) |
Encode a map into JSON text and write it to out.
|
void |
JSONArray.writeJSONString(Appendable out,
JSONStyle compression) |
|
static void |
JSONArray.writeJSONString(Iterable<? extends Object> list,
Appendable out,
JSONStyle compression) |
Encode a list into JSON text and write it to out.
|
void |
JSONObject.writeJSONString(Appendable out,
JSONStyle compression) |
serialize Object as json to an stream
|
void |
JSONStreamAwareEx.writeJSONString(Appendable out,
JSONStyle compression) |
write JSON string to out.
|
static void |
JSONValue.writeJSONString(Object value,
Appendable out,
JSONStyle compression) |
Encode an object into JSON text and write it to out.
|
Modifier and Type | Field | Description |
---|---|---|
(package private) JSONStyle |
ContentHandlerCompressor.compression |
Constructor | Description |
---|---|
ContentHandlerCompressor(Appendable out,
JSONStyle compression) |
Modifier and Type | Method | Description |
---|---|---|
static void |
JsonWriter.writeJSONKV(String key,
Object value,
Appendable out,
JSONStyle compression) |
Write a Key : value entry to a stream
|
<E> void |
ArrayWriter.writeJSONString(E value,
Appendable out,
JSONStyle compression) |
|
<E> void |
BeansWriter.writeJSONString(E value,
Appendable out,
JSONStyle compression) |
|
<E extends T> |
JsonWriterI.writeJSONString(E value,
Appendable out,
JSONStyle compression) |