Package | Description |
---|---|
io.github.lukehutch.fastclasspathscanner.json |
Modifier and Type | Method | Description |
---|---|---|
static <T> T |
JSONDeserializer.deserializeObject(Class<T> expectedType,
String json,
ClassFieldCache classFieldCache) |
Deserialize JSON to a new object graph, with the root object of the specified expected type, using or reusing
the given type cache.
|
static void |
JSONDeserializer.deserializeToField(Object containingObject,
String fieldName,
String json,
ClassFieldCache classFieldCache) |
Deserialize JSON to a new object graph, with the root object of the specified expected type, and store the
root object in the named field of the given containing object.
|
static String |
JSONSerializer.serializeFromField(Object containingObject,
String fieldName,
int indentWidth,
boolean onlySerializePublicFields,
ClassFieldCache classFieldCache) |
Recursively serialize the named field of an object, skipping transient and final fields.
|
static String |
JSONSerializer.serializeObject(Object obj,
int indentWidth,
boolean onlySerializePublicFields,
ClassFieldCache classFieldCache) |
Recursively serialize an Object (or array, list, map or set of objects) to JSON, skipping transient and final
fields.
|
Copyright © 2018. All rights reserved.