ReadOnlyJsonSerializer

Wrapping interface around com.badlogic.gdx.utils.Json.Serializer. Provides null-safety and convenient interface for serializer that is only able to read. Unlike libGDX com.badlogic.gdx.utils.Json.ReadOnlySerializer, the default implementation of the write method throws UnsupportedOperationException.

Functions

Link copied to clipboard
abstract override fun read(json: Json, jsonValue: JsonValue, type: Class<*>?): T
Link copied to clipboard
open override fun write(json: Json, value: T, type: Class<*>?): Nothing