| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public abstract static class | |
| public static interface | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectMap | |
| private final ObjectMap | |
| private final ObjectMap | |
| private static final boolean | |
| private Json. | |
| private boolean | |
| private final Object[] | |
| private final Object[] | |
| private boolean | |
| private boolean | |
| private JsonWriter. | |
| private boolean | |
| private boolean | |
| private JsonReader | |
| private boolean | |
| private final ObjectMap | |
| private String | |
| private final ObjectMap | |
| private boolean | |
| private JsonWriter |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private String | |
| private String | |
| public void | copyFields(Object from, Object to)
Each field on the |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | fromJson(Class<T>
May be null if the type is unknown. type, Class<T> May be null if the type is unknown. elementType, InputStream input)Returns: May be null. |
| public <T> T | |
| public <T> T | fromJson(Class<T>
May be null if the type is unknown. type, Class<T> May be null if the type is unknown. elementType, FileHandle file)Returns: May be null. |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public Class | |
| private Object[] | |
| private OrderedMap | |
| public boolean | |
| public JsonReader | |
| public <T> Json. | |
| public String | |
| public JsonWriter | |
| protected boolean | Returns: true if the field name should be ignored and an exception won't be thrown byreadFields(Object, JsonValue).The object whose fields are being read. object, JsonValue The JsonValue with the field name for which there is no matching class field. value)Called for each unknown field name encountered by |
| protected Object | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public <T> T | |
| public void | setDefaultSerializer(Json.
Sets the serializer to use when the type being deserialized is not known (null). |
| public void | setDeprecated(Class<T> type, String fieldName, boolean deprecated)
The specified field will be treated as if it has or does not have the |
| public void | setElementType(Class<T> type, String fieldName, Class<T> elementType)
Sets the type of elements in a collection. |
| public void | |
| public void | setIgnoreDeprecated(boolean ignoreDeprecated)
When true, fields with the |
| public void | setIgnoreUnknownFields(boolean ignoreUnknownFields)
When true, fields in the JSON that are not found on the class will not throw a |
| public void | |
| public void | |
| public void | setReadDeprecated(boolean readDeprecated)
When true, fields with the |
| public void | |
| public <T> void | setSerializer(Class<T> type, Json.
Registers a serializer to use for the specified type instead of the default behavior of serializing all of an objects fields. |
| public void | setSortFields(boolean sortFields)
When true, fields are sorted alphabetically when written, otherwise the source code order is used. |
| public void | setTypeName(String typeName)
Sets the name of the JSON field to store the Java class name or class tag when required to avoid ambiguity during deserialization. |
| public void | setUsePrototypes(boolean usePrototypes)
When true, field values that are identical to a newly constructed instance are not written. |
| public void | |
| protected void | |
| public String | |
| public String | |
| public String | |
| public void | |
| public void | |
| public void | toJson(Object object, Class<T>
May be null if the type is unknown. knownType, Class<T> May be null if the type is unknown. elementType, FileHandle file)
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | writeField(Object object, String fieldName, String jsonName, Class<T>
May be null if the type is unknown. elementType)Writes the specified field to the current JSON object. |
| public void | |
| public void | |
| public void | |
| public void | writeObjectStart(String name, Class<T> actualType, Class<T>
May be null if the type is unknown. knownType)
|
| public void | |
| public void | writeObjectStart(Class<T> actualType, Class<T>
May be null if the type is unknown. knownType)Starts writing an object, writing the actualType to a field if needed. |
| public void | |
| public void | writeValue(String name, Object
May be null. value)Writes the value as a field on the current JSON object, without writing the actual class. |
| public void | writeValue(String name, Object
May be null. value, Class<T> May be null if the type is unknown. knownType)Writes the value as a field on the current JSON object, writing the class of the object if it differs from the specified known type. |
| public void | writeValue(String name, Object
May be null. value, Class<T> May be null if the type is unknown. knownType, Class<T> May be null if the type is unknown. elementType)Writes the value as a field on the current JSON object, writing the class of the object if it differs from the specified known type. |
| public void | |
| public void | writeValue(Object
May be null. value, Class<T> May be null if the type is unknown. knownType)Writes the value, writing the class of the object if it differs from the specified known type. |
| public void | writeValue(Object
May be null. value, Class<T> May be null if the type is unknown. knownType, Class<T> May be null if the type is unknown. elementType)Writes the value, writing the class of the object if it differs from the specified known type. |