Companion

Properties

Link copied to clipboard

A null representation of the JsonValue.

Functions

Link copied to clipboard

Parse a JSON encoded String.

Link copied to clipboard

Wraps a JsonSerializable object as a JsonValue.

fun wrap(value: Any?): JsonValue

Wraps any valid object into a JsonValue.

Wraps a boolean as a JsonValue.

Wraps a char as a JsonValue.

Wraps a double as a JsonValue.

Wraps an int as a JsonValue.

Wraps a long as a JsonValue.

Wraps a String as a JsonValue.

fun wrap(value: Any?, defaultValue: JsonValue): JsonValue

Wraps any valid object into a JsonValue. If the object is unable to be wrapped, the default value will be returned. See wrap for rules on object wrapping.

Link copied to clipboard

Wraps any valid object into a JsonValue. If the object is unable to be wrapped, JsonValue.NULL will be returned instead.