private static void |
JSONSerializer.assignObjectIds(java.lang.Object jsonVal,
java.util.Map<ReferenceEqualityKey<java.lang.Object>,JSONObject> objToJSONVal,
ClassFieldCache classFieldCache,
java.util.Map<ReferenceEqualityKey<JSONReference>,java.lang.CharSequence> jsonReferenceToId,
java.util.concurrent.atomic.AtomicInteger objId,
boolean onlySerializePublicFields) |
Create a unique id for each referenced JSON object.
|
private static void |
JSONSerializer.convertVals(java.lang.Object[] convertedVals,
java.util.Set<ReferenceEqualityKey<java.lang.Object>> visitedOnPath,
java.util.Set<ReferenceEqualityKey<java.lang.Object>> standardObjectVisited,
ClassFieldCache classFieldCache,
java.util.Map<ReferenceEqualityKey<java.lang.Object>,JSONObject> objToJSONVal,
boolean onlySerializePublicFields) |
Take an array of object values, and recursively convert them (in place) into JSON values.
|
private static <T> T |
JSONDeserializer.deserializeObject(java.lang.Class<T> expectedType,
java.lang.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(java.lang.Object containingObject,
java.lang.String fieldName,
java.lang.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.
|
java.lang.reflect.Constructor<?> |
FieldTypeInfo.getConstructorForFieldTypeWithSizeHint(java.lang.reflect.Type fieldTypeFullyResolved,
ClassFieldCache classFieldCache) |
Get the constructor with size hint for the field type.
|
java.lang.reflect.Constructor<?> |
FieldTypeInfo.getDefaultConstructorForFieldType(java.lang.reflect.Type fieldTypeFullyResolved,
ClassFieldCache classFieldCache) |
Get the default constructor for the field type.
|
private static void |
JSONDeserializer.populateObjectFromJsonObject(java.lang.Object objectInstance,
java.lang.reflect.Type objectResolvedType,
java.lang.Object jsonVal,
ClassFieldCache classFieldCache,
java.util.Map<java.lang.CharSequence,java.lang.Object> idToObjectInstance,
java.util.List<java.lang.Runnable> collectionElementAdders) |
Populate object from json object.
|
static java.lang.String |
JSONSerializer.serializeFromField(java.lang.Object containingObject,
java.lang.String fieldName,
int indentWidth,
boolean onlySerializePublicFields,
ClassFieldCache classFieldCache) |
Recursively serialize the named field of an object, skipping transient and final fields.
|
static java.lang.String |
JSONSerializer.serializeObject(java.lang.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.
|
private static java.lang.Object |
JSONSerializer.toJSONGraph(java.lang.Object obj,
java.util.Set<ReferenceEqualityKey<java.lang.Object>> visitedOnPath,
java.util.Set<ReferenceEqualityKey<java.lang.Object>> standardObjectVisited,
ClassFieldCache classFieldCache,
java.util.Map<ReferenceEqualityKey<java.lang.Object>,JSONObject> objToJSONVal,
boolean onlySerializePublicFields) |
Turn an object graph into a graph of JSON objects, arrays, and values.
|