public class Json
extends java.lang.Object
Constructor and Description |
---|
Json() |
Modifier and Type | Method and Description |
---|---|
static DynObject |
addAll(DynObject target,
JsonObject json) |
static JsonArray |
createArray(java.io.InputStream json) |
static JsonArray |
createArray(java.io.Reader json) |
static JsonArray |
createArray(java.lang.String json) |
static JsonArrayBuilder |
createArrayBuilder() |
static JsonGeneratorFactory |
createGeneratorFactory(java.util.Map<java.lang.String,?> config) |
static JsonPathContext |
createJsonPathContext(JsonStructure jsonObject) |
static JsonObject |
createObject(java.io.InputStream json) |
static JsonObject |
createObject(java.lang.String json) |
static JsonObjectBuilder |
createObjectBuilder() |
static JsonObjectBuilder |
createObjectBuilder(JsonObject obj) |
static JsonObjectBuilder |
createObjectBuilder(java.lang.String json) |
static JsonReader |
createReader(java.io.InputStream in) |
static JsonReader |
createReader(java.io.Reader reader) |
static SAJParser |
createSAJParser(java.io.InputStream is,
SAJParser.SAJParserHandler handler) |
static SAJParser |
createSAJParser(JsonParser parser,
SAJParser.SAJParserHandler handler) |
static SAJParser |
createSAJParser(java.io.Reader reader,
SAJParser.SAJParserHandler handler) |
static java.lang.Object |
extract_path(JsonStructure jsonObject,
java.lang.String jsonpath) |
static JsonManager |
getManager() |
static void |
registerSerializer(java.lang.Class<? extends SupportFromJson> theClass) |
static void |
registerSerializer(JsonManager.JsonSerializer factory) |
static java.lang.Object[] |
toArray(JsonArray jsonArray,
java.lang.Object[] a) |
static java.lang.Object[] |
toArray(JsonObject json,
java.lang.String name,
java.lang.Object[] a) |
static java.util.Collection |
toCollection(JsonArray jsonArray) |
static java.util.Collection |
toCollection(JsonObject json,
java.lang.String name) |
static GetItemWithSizeAndIterator<java.lang.Object> |
toItems(JsonArray jsonArray) |
static java.lang.Iterable |
toIterable(JsonArray jsonArray) |
static java.util.Map |
toMap(JsonObject json) |
static java.util.Map |
toMap(JsonObject json,
java.lang.String name) |
static java.lang.Object |
toObject(JsonArray json,
int index) |
static java.lang.Object |
toObject(JsonObject json,
java.lang.String name) |
static java.lang.Object |
toObject(JsonValue value) |
static java.lang.String |
toString(JsonValue obj) |
public static JsonManager getManager()
public static void registerSerializer(java.lang.Class<? extends SupportFromJson> theClass)
public static void registerSerializer(JsonManager.JsonSerializer factory)
public static JsonGeneratorFactory createGeneratorFactory(java.util.Map<java.lang.String,?> config)
public static JsonReader createReader(java.io.InputStream in)
public static java.lang.Object extract_path(JsonStructure jsonObject, java.lang.String jsonpath)
public static JsonPathContext createJsonPathContext(JsonStructure jsonObject)
public static JsonReader createReader(java.io.Reader reader)
public static JsonObjectBuilder createObjectBuilder()
public static JsonObjectBuilder createObjectBuilder(java.lang.String json)
public static JsonObjectBuilder createObjectBuilder(JsonObject obj)
public static JsonArrayBuilder createArrayBuilder()
public static JsonObject createObject(java.lang.String json)
public static JsonObject createObject(java.io.InputStream json)
public static JsonArray createArray(java.lang.String json)
public static JsonArray createArray(java.io.InputStream json)
public static JsonArray createArray(java.io.Reader json)
public static java.lang.String toString(JsonValue obj)
public static java.lang.Object toObject(JsonValue value)
public static java.lang.Object toObject(JsonArray json, int index)
public static java.lang.Object toObject(JsonObject json, java.lang.String name)
public static java.lang.Object[] toArray(JsonObject json, java.lang.String name, java.lang.Object[] a)
public static java.lang.Object[] toArray(JsonArray jsonArray, java.lang.Object[] a)
public static java.lang.Iterable toIterable(JsonArray jsonArray)
public static java.util.Collection toCollection(JsonArray jsonArray)
public static java.util.Collection toCollection(JsonObject json, java.lang.String name)
public static GetItemWithSizeAndIterator<java.lang.Object> toItems(JsonArray jsonArray)
public static java.util.Map toMap(JsonObject json, java.lang.String name)
public static java.util.Map toMap(JsonObject json)
public static SAJParser createSAJParser(java.io.InputStream is, SAJParser.SAJParserHandler handler)
public static SAJParser createSAJParser(java.io.Reader reader, SAJParser.SAJParserHandler handler)
public static SAJParser createSAJParser(JsonParser parser, SAJParser.SAJParserHandler handler)