| 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 |
|---|---|
JsonWriteOptions |
JsonWriteOptions.copy()
This creates and returns a copy of these options.
|
static JsonWriteOptions |
JsonWriteOptions.parsePath(String pathProperties)
Parse and return a PathProperties from nested string format like
(a,b,c(d,e),f(g)) where "c" is a path containing "d" and "e" and "f" is a
path containing "g" and the root path contains "a","b","c" and "f".
|
JsonWriteOptions |
JsonWriteOptions.setCallback(String callback)
Set a JSONP callback function.
|
JsonWriteOptions |
JsonWriteOptions.setPathProperties(String path,
Set<String> propertiesToInclude)
Set the properties to include in the JSON output for the given path.
|
JsonWriteOptions |
JsonWriteOptions.setPathProperties(String path,
String propertiesToInclude)
Set the properties to include in the JSON output for the given path.
|
JsonWriteOptions |
JsonWriteOptions.setPathVisitor(String path,
JsonWriteBeanVisitor<?> visitor)
Register a JsonWriteBeanVisitor for the given path.
|
JsonWriteOptions |
JsonWriteOptions.setRootPathProperties(Set<String> propertiesToInclude)
Set the properties to include in the JSON output for the root level.
|
JsonWriteOptions |
JsonWriteOptions.setRootPathProperties(String propertiesToInclude)
Set the properties to include in the JSON output for the root level.
|
JsonWriteOptions |
JsonWriteOptions.setRootPathVisitor(JsonWriteBeanVisitor<?> visitor)
Register a JsonWriteBeanVisitor for the root level.
|
JsonWriteOptions |
JsonWriteOptions.setValueAdapter(JsonValueAdapter valueAdapter)
Set a JsonValueAdapter for custom DateTime and Date formatting.
|
| Modifier and Type | Method and Description |
|---|---|
String |
JsonContext.toJsonString(Object o,
boolean pretty,
JsonWriteOptions options)
Convert a bean or collection to json string using options.
|
String |
JsonContext.toJsonString(Object o,
boolean pretty,
JsonWriteOptions options,
String callback)
Convert a bean or collection to json string using a JSONP callback.
|
void |
JsonContext.toJsonWriter(Object o,
Writer writer,
boolean pretty,
JsonWriteOptions options)
With additional options to specify JsonValueAdapter and
JsonWriteBeanVisitor's.
|
void |
JsonContext.toJsonWriter(Object o,
Writer writer,
boolean pretty,
JsonWriteOptions options,
String callback)
With additional JSONP callback function.
|
| Modifier and Type | Method and Description |
|---|---|
String |
DJsonContext.toJsonString(Object o,
boolean pretty,
JsonWriteOptions options) |
String |
DJsonContext.toJsonString(Object o,
boolean pretty,
JsonWriteOptions options,
String callback) |
void |
DJsonContext.toJsonWriter(Object o,
Writer writer,
boolean pretty,
JsonWriteOptions options) |
void |
DJsonContext.toJsonWriter(Object o,
Writer writer,
boolean pretty,
JsonWriteOptions options,
String callback) |
| Constructor and Description |
|---|
WriteJsonContext(WriteJsonBuffer buffer,
boolean pretty,
JsonValueAdapter dfltValueAdapter,
JsonWriteOptions options,
String requestCallback,
SpiEbeanServer server) |
Copyright © 2014. All Rights Reserved.