Package | Description |
---|---|
net.arnx.jsonic |
Provides classes for manipulating JSON(http://www.json.org/) format.
|
Modifier and Type | Method and Description |
---|---|
Object |
JSON.convert(Object value,
Type type) |
static <T> T |
JSON.decode(InputStream in)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(InputStream in,
Class<? extends T> cls)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(InputStream in,
Type type)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(Reader reader)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(Reader reader,
Class<? extends T> cls)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(Reader reader,
Type type)
Decodes a json stream into a object.
|
static <T> T |
JSON.decode(String source)
Decodes a json string into a object.
|
static <T> T |
JSON.decode(String source,
Class<? extends T> cls)
Decodes a json string into a typed object.
|
static <T> T |
JSON.decode(String source,
Type type)
Decodes a json string into a typed object.
|
static String |
JSON.encode(Object source)
Encodes a object into a json string.
|
static void |
JSON.encode(Object source,
Appendable appendable)
Encodes a object into a json string.
|
static void |
JSON.encode(Object source,
Appendable appendable,
boolean prettyPrint)
Encodes a object into a json string.
|
static String |
JSON.encode(Object source,
boolean prettyPrint)
Encodes a object into a json string.
|
static void |
JSON.encode(Object source,
OutputStream out)
Encodes a object into a json string.
|
static void |
JSON.encode(Object source,
OutputStream out,
boolean prettyPrint)
Encodes a object into a json string.
|
static String |
JSON.escapeScript(Object source)
Escapes a object into JavaScript format.
|
static void |
JSON.escapeScript(Object source,
Appendable appendable)
Escapes a object into JavaScript format.
|
static void |
JSON.escapeScript(Object source,
OutputStream out)
Escapes a object into JavaScript format.
|
<T> T |
JSON.parse(CharSequence cs) |
<T> T |
JSON.parse(CharSequence s,
Class<? extends T> cls) |
<T> T |
JSON.parse(CharSequence cs,
Type type) |
<T> T |
JSON.parse(InputStream in) |
<T> T |
JSON.parse(InputStream in,
Class<? extends T> cls) |
<T> T |
JSON.parse(InputStream in,
Type type) |
<T> T |
JSON.parse(Reader reader) |
<T> T |
JSON.parse(Reader reader,
Class<? extends T> cls) |
<T> T |
JSON.parse(Reader reader,
Type type) |
static void |
JSON.validate(CharSequence cs)
Validates a json text
|
static void |
JSON.validate(InputStream in)
Validates a json stream
|
static void |
JSON.validate(Reader reader)
Validates a json stream
|
Copyright © 2021. All rights reserved.