public class JsonConverter
extends com.badlogic.gdx.utils.Json
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
INVALID |
Constructor and Description |
---|
JsonConverter()
Creates a new JsonConverter using "minimal" output type, so it omits double quotes whenever possible but gives
up compatibility with most other JSON readers.
|
JsonConverter(com.badlogic.gdx.utils.JsonWriter.OutputType outputType)
Creates a new JsonConverter 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.
|
Modifier and Type | Method and Description |
---|---|
static void |
initialize(com.badlogic.gdx.utils.Json json) |
addClassTag, 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, writeValue
public JsonConverter()
JsonWriter.OutputType#json
if you need full compatibility.public JsonConverter(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.