| Package | Description |
|---|---|
| com.holonplatform.json | |
| com.holonplatform.json.gson.internal | |
| com.holonplatform.json.internal | |
| com.holonplatform.json.jackson.internal |
| Modifier and Type | Method and Description |
|---|---|
static JsonReader |
JsonReader.from(byte[] bytes)
Build a
JsonReader using given byte array as JSON data source. |
static JsonReader |
JsonReader.from(InputStream stream)
Build a
JsonReader using given InputStream as JSON data source and UTF-8 as charset. |
static JsonReader |
JsonReader.from(InputStream stream,
Charset charset)
Build a
JsonReader using given InputStream as JSON data source and given charset. |
static JsonReader |
JsonReader.from(InputStream stream,
String charsetName)
Build a
JsonReader using given InputStream as JSON data source and given charset name. |
static JsonReader |
JsonReader.from(Reader reader)
Build a
JsonReader using given Reader as JSON data source. |
static JsonReader |
JsonReader.from(String string)
Build a
JsonReader using given String as JSON data source. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
Json.fromJson(JsonReader reader,
Class<T> type)
Deserializes the specified JSON source into an object of the specified type.
|
<P extends com.holonplatform.core.property.Property> |
Json.fromJson(JsonReader reader,
Iterable<P> propertySet)
Deserializes the specified JSON data source into a
PropertyBox, using given propertySet as
PropertyBox property set. |
default com.holonplatform.core.property.PropertyBox |
Json.fromJson(JsonReader reader,
com.holonplatform.core.property.Property... propertySet)
Deserializes the specified JSON data source into a
PropertyBox, using given propertySet as
PropertyBox property set. |
<T> List<T> |
Json.fromJsonArray(JsonReader reader,
Class<T> type)
Deserializes the specified JSON array data source into a
List of objects of the specified type. |
<P extends com.holonplatform.core.property.Property> |
Json.fromJsonArray(JsonReader reader,
Iterable<P> propertySet)
Deserializes the specified JSON array data source into a list of
PropertyBox, using given
propertySet as PropertyBox property set. |
default List<com.holonplatform.core.property.PropertyBox> |
Json.fromJsonArray(JsonReader reader,
com.holonplatform.core.property.Property... propertySet)
Deserializes the specified JSON array data source into a list of
PropertyBox, using given
propertySet as PropertyBox property set. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
DefaultGsonJson.fromJson(JsonReader reader,
Class<T> type) |
<P extends com.holonplatform.core.property.Property> |
DefaultGsonJson.fromJson(JsonReader reader,
Iterable<P> propertySet) |
<T> List<T> |
DefaultGsonJson.fromJsonArray(JsonReader reader,
Class<T> type) |
<P extends com.holonplatform.core.property.Property> |
DefaultGsonJson.fromJsonArray(JsonReader reader,
Iterable<P> propertySet) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultJsonReader
Default
JsonReader implementation. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
DefaultJacksonJson.fromJson(JsonReader reader,
Class<T> type) |
<P extends com.holonplatform.core.property.Property> |
DefaultJacksonJson.fromJson(JsonReader reader,
Iterable<P> propertySet) |
<T> List<T> |
DefaultJacksonJson.fromJsonArray(JsonReader reader,
Class<T> type) |
<P extends com.holonplatform.core.property.Property> |
DefaultJacksonJson.fromJsonArray(JsonReader reader,
Iterable<P> propertySet) |
Copyright © 2019 The Holon Platform. All rights reserved.