Package-level declarations

Properties

Link copied to clipboard
val json: Json

Functions

Link copied to clipboard
inline fun <T, R> T.convert(): R

Converts a serializable object of type T to another serializable type R.

Link copied to clipboard
inline fun <T> Json.decodeListOrNull(value: String?): List<T>?

Decodes a JSON list, returning null when the input is null or invalid.

Link copied to clipboard
inline fun <T> Json.decodeOrNull(value: String?): T?

Decodes JSON, returning null when the input is null or invalid.

Link copied to clipboard
inline fun <T> T.toMap(): JsonObject

Converts a serializable object to a JSON object.

Link copied to clipboard
inline fun <T> String.toObject(): T

Converts a JSON string to a serializable object.

inline fun <T> JsonObject.toObject(): T

Converts a JSON object to a serializable object.