| Package | Description |
|---|---|
| com.holonplatform.json |
| 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. |
Copyright © 2019 The Holon Platform. All rights reserved.