JsonFormatter

interface JsonFormatter<W : Any>

Transforms a scalar value to and from JSON.

Inheritors

Functions

Link copied to clipboard
abstract fun fromString(value: String): W?

The source of value may have been a string or numeric literal.

Link copied to clipboard
abstract fun toStringOrNumber(value: W): Any

Returns either a String or a Number.