Package | Description |
---|---|
io.ebean.text.json |
JSON formatting and parsing objects (See JsonContext).
|
Modifier and Type | Method and Description |
---|---|
<T> JsonBeanReader<T> |
JsonContext.createBeanReader(BeanType<T> beanType,
com.fasterxml.jackson.core.JsonParser parser,
JsonReadOptions options)
Create and return a new bean reading for the bean type given the JSON options and source.
|
<T> JsonBeanReader<T> |
JsonContext.createBeanReader(Class<T> cls,
com.fasterxml.jackson.core.JsonParser parser,
JsonReadOptions options)
Create and return a new bean reading for the bean type given the JSON options and source.
|
com.fasterxml.jackson.core.JsonGenerator |
JsonContext.createGenerator(Writer writer)
Create and return a new JsonGenerator for the given writer.
|
com.fasterxml.jackson.core.JsonParser |
JsonContext.createParser(Reader reader)
Create and return a new JsonParser for the given reader.
|
<T> T |
JsonContext.toBean(Class<T> cls,
com.fasterxml.jackson.core.JsonParser parser)
Convert json parser input into a Bean of a specific type.
|
<T> T |
JsonContext.toBean(Class<T> cls,
com.fasterxml.jackson.core.JsonParser parser,
JsonReadOptions options)
Convert json parser input into a Bean of a specific type additionally using JsonReadOptions..
|
<T> T |
JsonContext.toBean(Class<T> rootType,
Reader json)
Convert json reader input into a Bean of a specific type.
|
<T> T |
JsonContext.toBean(Class<T> rootType,
Reader json,
JsonReadOptions options)
Convert json reader input into a Bean of a specific type additionally using JsonReadOptions.
|
<T> T |
JsonContext.toBean(Class<T> rootType,
String json)
Convert json string input into a Bean of a specific type.
|
<T> T |
JsonContext.toBean(Class<T> rootType,
String json,
JsonReadOptions options)
Convert json string input into a Bean of a specific type additionally using JsonReadOptions.
|
String |
JsonContext.toJson(Object value)
Return the bean or collection as JSON string.
|
String |
JsonContext.toJson(Object value,
FetchPath fetchPath)
Return the bean or collection as JSON string using FetchPath.
|
void |
JsonContext.toJson(Object value,
com.fasterxml.jackson.core.JsonGenerator generator)
Write the bean or collection to the JsonGenerator.
|
void |
JsonContext.toJson(Object value,
com.fasterxml.jackson.core.JsonGenerator generator,
FetchPath fetchPath)
Write the bean or collection to the JsonGenerator using the FetchPath.
|
void |
JsonContext.toJson(Object value,
com.fasterxml.jackson.core.JsonGenerator generator,
JsonWriteOptions options)
Deprecated in favour of using PathProperties by itself.
|
String |
JsonContext.toJson(Object value,
JsonWriteOptions options)
Deprecated in favour of using PathProperties by itself.
|
void |
JsonContext.toJson(Object value,
Writer writer)
Write the bean or collection in JSON format to the writer.
|
void |
JsonContext.toJson(Object value,
Writer writer,
FetchPath fetchPath)
Write the bean or collection as json to the writer using the FetchPath.
|
void |
JsonContext.toJson(Object value,
Writer writer,
JsonWriteOptions options)
Deprecated in favour of using PathProperties by itself.
|
<T> List<T> |
JsonContext.toList(Class<T> cls,
com.fasterxml.jackson.core.JsonParser json)
Convert json parser input into a list of beans of a specific type.
|
<T> List<T> |
JsonContext.toList(Class<T> cls,
com.fasterxml.jackson.core.JsonParser json,
JsonReadOptions options)
Convert json parser input into a list of beans of a specific type additionally using JsonReadOptions.
|
<T> List<T> |
JsonContext.toList(Class<T> rootType,
Reader json)
Convert json reader input into a list of beans of a specific type.
|
<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 additionally using JsonReadOptions.
|
<T> List<T> |
JsonContext.toList(Class<T> rootType,
String json)
Convert json string input into a list of beans of a specific type.
|
<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 additionally using JsonReadOptions.
|
Object |
JsonContext.toObject(Type genericType,
com.fasterxml.jackson.core.JsonParser jsonParser)
Use the genericType to determine if this should be converted into a List or
bean.
|
Object |
JsonContext.toObject(Type genericType,
Reader json)
Use the genericType to determine if this should be converted into a List or
bean.
|
Object |
JsonContext.toObject(Type genericType,
String json)
Use the genericType to determine if this should be converted into a List or
bean.
|
Copyright © 2019. All rights reserved.