public interface JsonManager
Modifier and Type | Interface and Description |
---|---|
static interface |
JsonManager.JsonSerializer |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_NAME_CLASS |
Modifier and Type | Method and Description |
---|---|
DynObject |
addAll(DynObject target,
JsonObject json) |
JsonArray |
createArray(java.lang.String json) |
JsonArrayBuilder |
createArrayBuilder() |
JsonPathContext |
createJSonPathContext(JsonStructure jsonObject) |
JsonObject |
createObject(java.lang.String json) |
JsonObjectBuilder |
createObjectBuilder() |
JsonObjectBuilder |
createObjectBuilder(JsonObject json) |
JsonObjectBuilder |
createObjectBuilder(java.lang.String json) |
SAJParser |
createSAJParser(java.io.InputStream is,
SAJParser.SAJParserHandler handler) |
SAJParser |
createSAJParser(JsonParser parser,
SAJParser.SAJParserHandler handler) |
SAJParser |
createSAJParser(java.io.Reader reader,
SAJParser.SAJParserHandler handler) |
JsonManager.JsonSerializer |
getSerializer(JsonObject json) |
JsonManager.JsonSerializer |
getSerializer(java.lang.Object value) |
void |
registerSerializer(java.lang.Class<? extends SupportFromJson> theClass) |
void |
registerSerializer(JsonManager.JsonSerializer serializer) |
java.lang.Object[] |
toArray(JsonArray jsonArray,
java.lang.Object[] a) |
java.util.Collection |
toCollection(JsonArray jsonArray) |
GetItemWithSizeAndIterator<java.lang.Object> |
toItems(JsonArray jsonArray) |
java.lang.Iterable |
toIterable(JsonArray jsonArray) |
java.util.Map |
toMap(JsonObject json) |
java.lang.Object |
toObject(JsonArray json,
int index) |
java.lang.Object |
toObject(JsonObject json,
java.lang.String name) |
java.lang.Object |
toObject(JsonValue value) |
java.lang.Object |
toObjectOrDefault(JsonValue value,
java.lang.Object defaultValue) |
java.lang.String |
toString(JsonValue obj) |
static final java.lang.String ATTRIBUTE_NAME_CLASS
void registerSerializer(java.lang.Class<? extends SupportFromJson> theClass)
void registerSerializer(JsonManager.JsonSerializer serializer)
JsonManager.JsonSerializer getSerializer(java.lang.Object value)
JsonManager.JsonSerializer getSerializer(JsonObject json)
JsonObjectBuilder createObjectBuilder()
JsonObjectBuilder createObjectBuilder(java.lang.String json)
JsonObjectBuilder createObjectBuilder(JsonObject json)
JsonArrayBuilder createArrayBuilder()
JsonObject createObject(java.lang.String json)
JsonArray createArray(java.lang.String json)
java.lang.String toString(JsonValue obj)
java.lang.Object toObject(JsonValue value)
java.lang.Object toObjectOrDefault(JsonValue value, java.lang.Object defaultValue)
java.lang.Object toObject(JsonObject json, java.lang.String name)
java.lang.Object toObject(JsonArray json, int index)
java.lang.Object[] toArray(JsonArray jsonArray, java.lang.Object[] a)
java.lang.Iterable toIterable(JsonArray jsonArray)
java.util.Collection toCollection(JsonArray jsonArray)
GetItemWithSizeAndIterator<java.lang.Object> toItems(JsonArray jsonArray)
java.util.Map toMap(JsonObject json)
JsonPathContext createJSonPathContext(JsonStructure jsonObject)
SAJParser createSAJParser(java.io.InputStream is, SAJParser.SAJParserHandler handler)
SAJParser createSAJParser(java.io.Reader reader, SAJParser.SAJParserHandler handler)
SAJParser createSAJParser(JsonParser parser, SAJParser.SAJParserHandler handler)