Package | Description |
---|---|
com.cedarsoftware.io |
Modifier and Type | Class and Description |
---|---|
static class |
ReadOptionsBuilder.DefaultReadOptions |
Modifier and Type | Method and Description |
---|---|
ReadOptions |
ReadOptionsBuilder.build() |
ReadOptions |
ReaderContext.getReadOptions() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
JsonIo.deepCopy(Object source,
ReadOptions readOptions,
WriteOptions writeOptions)
Copy an object graph using JSON.
|
static String |
JsonIo.formatJson(String json,
ReadOptions readOptions,
WriteOptions writeOptions)
Format the passed in JSON into multi-line, indented format, commonly used in JSON online editors.
|
static <T> T |
JsonIo.toObjects(InputStream in,
ReadOptions readOptions,
Class<T> rootType)
Convert the passed in JSON to Java Objects.
|
static <T> T |
JsonIo.toObjects(JsonObject jsonObject,
ReadOptions readOptions,
Class<T> rootType)
Convert a root JsonObject that represents parsed JSON, into an actual Java object.
|
static <T> T |
JsonIo.toObjects(String json,
ReadOptions readOptions,
Class<T> rootType)
Convert the passed in JSON to Java Objects.
|
Constructor and Description |
---|
JsonReader(InputStream input,
ReadOptions readOptions)
Creates a json reader using custom read options
|
JsonReader(InputStream inputStream,
ReadOptions readOptions,
ReferenceTracker references) |
JsonReader(ReadOptions readOptions)
Use this constructor if you already have a JsonObject graph and want to parse it into
Java objects by calling jsonReader.jsonObjectsToJava(rootJsonObject) after constructing
the JsonReader.
|
MapResolver(ReadOptions readOptions,
ReferenceTracker references,
com.cedarsoftware.util.convert.Converter converter) |
ObjectResolver(ReadOptions readOptions,
ReferenceTracker references,
com.cedarsoftware.util.convert.Converter converter)
Constructor
|
Resolver(ReadOptions readOptions,
ReferenceTracker references,
com.cedarsoftware.util.convert.Converter converter) |
Copyright © 2024. All rights reserved.