public class DataConverter extends JsonConverter
INVALID| Constructor and Description |
|---|
DataConverter()
Creates a new DataConverter using "minimal" output type, so it omits double quotes whenever possible but gives
up compatibility with most other JSON readers.
|
DataConverter(com.badlogic.gdx.utils.JsonWriter.OutputType outputType)
Creates a new DataConverter with the given OutputType; typically minimal is fine, but compatibility may require
you to use json; the javascript type is a sort of middle ground.
|
initializeaddClassTag, copyFields, fromJson, fromJson, fromJson, fromJson, fromJson, fromJson, fromJson, fromJson, fromJson, fromJson, getClass, getIgnoreUnknownFields, getSerializer, getTag, getWriter, ignoreUnknownField, newInstance, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, readField, readField, readField, readField, readField, readFields, readValue, readValue, readValue, readValue, readValue, readValue, readValue, setDefaultSerializer, setDeprecated, setElementType, setEnumNames, setIgnoreDeprecated, setIgnoreUnknownFields, setOutputType, setQuoteLongValues, setReadDeprecated, setSerializer, setSortFields, setTypeName, setUsePrototypes, setWriter, sortFields, toJson, toJson, toJson, toJson, toJson, toJson, toJson, toJson, toJson, writeArrayEnd, writeArrayStart, writeArrayStart, writeField, writeField, writeField, writeField, writeFields, writeObjectEnd, writeObjectStart, writeObjectStart, writeObjectStart, writeObjectStart, writeType, writeValue, writeValue, writeValue, writeValue, writeValue, writeValuepublic DataConverter()
JsonWriter.OutputType#json if you need full compatibility.public DataConverter(com.badlogic.gdx.utils.JsonWriter.OutputType outputType)
outputType - a JsonWriter.OutputType enum value that determines what syntax can be omitted from the outputCopyright © Eben Howard 2012–2022. All rights reserved.