Package-level declarations

Types

Link copied to clipboard

Exception which can be thrown while JSON writing if it contains unsupported fields.

Functions

Link copied to clipboard
fun toJson(value: Any?, type: KType?, omitNulls: Boolean, key: String? = null): Json

Internal function, use toJson or toJsonRepresentation instead.

Link copied to clipboard
inline fun <T> T.toJson(omitNulls: Boolean = true): String

Writes value of subtype of T to JSON string.

Link copied to clipboard
inline fun <T> T.toJsonRepresentation(omitNulls: Boolean = true): Json

Maps value of subtype of T to Json.