TokenizingJson
object TokenizingJson
Content copied to clipboard
Json serialization that accepts Any?, and converts non-primitive values to string keys using InstanceTokenizer.
Types
TokenizingSerializer
Link copied to clipboard
KotlinX serializer that automatically converts non-primitive values to string tokens on serialization, and automatically replaces string tokens with the real Kotlin/JVM objects they represent on detokenization.
Functions
getJsonElement
Link copied to clipboard
fun getJsonElement(value: Any?, requireTokenization: (Any?) -> Boolean? = null): JsonElement
Content copied to clipboard
Get a KotlinX JsonElement for any Kotlin/JVM value or instance.
getJsonReal
Link copied to clipboard
Get a real value or instance from any KotlinX JsonElement.
isNotPrimitive
Link copied to clipboard
Properties
Sources
jvm source
Link copied to clipboard