Package-level declarations
Types
Link copied to clipboard
Wrapping interface around com.badlogic.gdx.utils.Json.Serializer. Improves typing by adding nullability information and changes default parameter names.
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Factory function to create a simplified ReadOnlyJsonSerializer, which accepts only JsonValue.
inline fun <T> readOnlySerializer(crossinline reader: (Json, JsonValue, Class<*>?) -> T): Json.Serializer<T>
Factory function to create a ReadOnlyJsonSerializer from lambda.
Link copied to clipboard
Link copied to clipboard
Registers a serializer to use for type T instead of the default behavior of serializing all of an object fields.