| Package | Description |
|---|---|
| net.arnx.jsonic |
Provides classes for manipulating JSON(http://www.json.org/) format.
|
| net.arnx.jsonic.parse |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
JSON.convert(java.lang.Object value,
java.lang.reflect.Type type) |
(package private) <T> T |
JSON.Context.convertInternal(java.lang.Object value,
java.lang.reflect.Type type) |
static <T> T |
JSON.decode(java.io.InputStream in)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(java.io.InputStream in,
java.lang.Class<? extends T> cls)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(java.io.InputStream in,
java.lang.reflect.Type type)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(java.io.Reader reader)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(java.io.Reader reader,
java.lang.Class<? extends T> cls)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(java.io.Reader reader,
java.lang.reflect.Type type)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(java.lang.String source)
Decodes a json string into a object.
|
static <T> T |
JSON.decode(java.lang.String source,
java.lang.Class<? extends T> cls)
Decodes a json string into a typed object.
|
static <T> T |
JSON.decode(java.lang.String source,
java.lang.reflect.Type type)
Decodes a json string into a typed object.
|
static java.lang.String |
JSON.encode(java.lang.Object source)
Encodes a object into a json string.
|
static void |
JSON.encode(java.lang.Object source,
java.lang.Appendable appendable)
Encodes a object into a json string.
|
static void |
JSON.encode(java.lang.Object source,
java.lang.Appendable appendable,
boolean prettyPrint)
Encodes a object into a json string.
|
static java.lang.String |
JSON.encode(java.lang.Object source,
boolean prettyPrint)
Encodes a object into a json string.
|
static void |
JSON.encode(java.lang.Object source,
java.io.OutputStream out)
Encodes a object into a json string.
|
static void |
JSON.encode(java.lang.Object source,
java.io.OutputStream out,
boolean prettyPrint)
Encodes a object into a json string.
|
static java.lang.String |
JSON.escapeScript(java.lang.Object source)
Escapes a object into JavaScript format.
|
static void |
JSON.escapeScript(java.lang.Object source,
java.lang.Appendable appendable)
Escapes a object into JavaScript format.
|
static void |
JSON.escapeScript(java.lang.Object source,
java.io.OutputStream out)
Escapes a object into JavaScript format.
|
<T> T |
JSON.parse(java.lang.CharSequence cs) |
<T> T |
JSON.parse(java.lang.CharSequence s,
java.lang.Class<? extends T> cls) |
<T> T |
JSON.parse(java.lang.CharSequence cs,
java.lang.reflect.Type type) |
<T> T |
JSON.parse(java.io.InputStream in) |
<T> T |
JSON.parse(java.io.InputStream in,
java.lang.Class<? extends T> cls) |
<T> T |
JSON.parse(java.io.InputStream in,
java.lang.reflect.Type type) |
<T> T |
JSON.parse(java.io.Reader reader) |
<T> T |
JSON.parse(java.io.Reader reader,
java.lang.Class<? extends T> cls) |
<T> T |
JSON.parse(java.io.Reader reader,
java.lang.reflect.Type type) |
static void |
JSON.validate(java.lang.CharSequence cs)
Validates a json text
|
static void |
JSON.validate(java.io.InputStream in)
Validates a json stream
|
static void |
JSON.validate(java.io.Reader reader)
Validates a json stream
|
| Modifier and Type | Method and Description |
|---|---|
(package private) JSONException |
JSONParser.createParseException(InputSource in,
java.lang.String id) |
(package private) JSONException |
JSONParser.createParseException(InputSource in,
java.lang.String id,
java.lang.Object... args) |