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