| Package | Description |
|---|---|
| org.everrest.core.impl.provider.json |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayValue |
class |
BooleanValue |
class |
DoubleValue |
class |
LongValue |
class |
NullValue |
class |
NumericValue |
class |
ObjectValue |
class |
StringValue |
| Modifier and Type | Method and Description |
|---|---|
static JsonValue |
JsonGenerator.createJsonArray(Collection<?> collection)
Create JSON array from specified collection.
|
static JsonValue |
JsonGenerator.createJsonArray(Object array)
Create JSON array from specified object.
|
static JsonValue |
JsonGenerator.createJsonObject(Object object)
Create JSON object from specified object.
|
static JsonValue |
JsonGenerator.createJsonObjectFromMap(Map<String,?> map)
Create JSON object from specified map.
|
JsonValue |
JsonGenerator.createJsonObjectFromString(String s)
Create JSON object from specified string imply it is JSON object in String
format.
|
JsonValue |
ObjectValue.getElement(String key) |
JsonValue |
JsonValue.getElement(String key)
Get value by key.
|
JsonValue |
JsonParser.getJsonObject()
Get result of parsing.
|
JsonValue |
JsonHandler.getJsonObject() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<JsonValue> |
JsonValue.getElements()
Get all element of this value.
|
Iterator<JsonValue> |
ArrayValue.getElements() |
| Modifier and Type | Method and Description |
|---|---|
void |
JsonValue.addElement(JsonValue child)
Add child value.
|
void |
ArrayValue.addElement(JsonValue child) |
void |
ObjectValue.addElement(String key,
JsonValue child) |
void |
JsonValue.addElement(String key,
JsonValue child)
Add child value.
|
static Object |
ObjectBuilder.createArray(Class<?> clazz,
JsonValue jsonArray)
Create array of Java Object from JSON source include multi-dimension
array.
|
static <T extends Collection<?>> |
ObjectBuilder.createCollection(Class<T> collectionClass,
Type genericType,
JsonValue jsonArray)
Create instance of
collectionClass from JSON representation. |
static <T> T |
ObjectBuilder.createObject(Class<T> clazz,
JsonValue jsonValue)
Create Java Bean from Json Source.
|
static <T extends Map<String,?>> |
ObjectBuilder.createObject(Class<T> mapClass,
Type genericType,
JsonValue jsonObject)
Create instance of
mapClass from JSON representation. |
Copyright © 2015. All rights reserved.