| Package | Description |
|---|---|
| com.avaje.ebean.text.json |
JSON formatting and parsing objects (See JsonContext).
|
| com.avaje.ebeaninternal.server.text.json |
| Modifier and Type | Method and Description |
|---|---|
JsonReadOptions |
JsonReadOptions.addRootVisitor(JsonReadBeanVisitor<?> visitor)
Register a JsonReadBeanVisitor for the root level.
|
JsonReadOptions |
JsonReadOptions.addVisitor(String path,
JsonReadBeanVisitor<?> visitor)
Register a JsonReadBeanVisitor for a given path.
|
JsonReadOptions |
JsonReadOptions.setValueAdapter(JsonValueAdapter valueAdapter)
Set a JsonValueAdapter for custom DateTime and Date formatting.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JsonContext.toBean(Class<T> rootType,
Reader json,
JsonReadOptions options)
Convert json reader input into a Bean of a specific type with options.
|
<T> T |
JsonContext.toBean(Class<T> rootType,
String json,
JsonReadOptions options)
Convert json string input into a Bean of a specific type with options.
|
<T> List<T> |
JsonContext.toList(Class<T> rootType,
Reader json,
JsonReadOptions options)
Convert json reader input into a list of beans of a specific type with
options.
|
<T> List<T> |
JsonContext.toList(Class<T> rootType,
String json,
JsonReadOptions options)
Convert json string input into a list of beans of a specific type with
options.
|
Object |
JsonContext.toObject(Type genericType,
Reader json,
JsonReadOptions options)
Use the genericType to determine if this should be converted into a List or
bean.
|
Object |
JsonContext.toObject(Type genericType,
String json,
JsonReadOptions options)
Use the genericType to determine if this should be converted into a List or
bean.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
DJsonContext.toBean(Class<T> cls,
Reader jsonReader,
JsonReadOptions options) |
<T> T |
DJsonContext.toBean(Class<T> cls,
String json,
JsonReadOptions options) |
<T> List<T> |
DJsonContext.toList(Class<T> cls,
Reader jsonReader,
JsonReadOptions options) |
<T> List<T> |
DJsonContext.toList(Class<T> cls,
String json,
JsonReadOptions options) |
Object |
DJsonContext.toObject(Type genericType,
Reader json,
JsonReadOptions options) |
Object |
DJsonContext.toObject(Type genericType,
String json,
JsonReadOptions options) |
| Constructor and Description |
|---|
ReadJsonContext(ReadJsonSource src,
JsonValueAdapter dfltValueAdapter,
JsonReadOptions options) |
Copyright © 2014. All Rights Reserved.