JsonPrimitive

Creates a JsonPrimitive from the given boolean.


Creates a JsonPrimitive from the given number.


fun JsonPrimitive(value: <Error class: unknown class>): JsonPrimitive(source)

Creates a numeric JsonPrimitive from the given UByte.

The value will be encoded as a JSON number.


fun JsonPrimitive(value: <Error class: unknown class>): JsonPrimitive(source)

Creates a numeric JsonPrimitive from the given UShort.

The value will be encoded as a JSON number.


fun JsonPrimitive(value: <Error class: unknown class>): JsonPrimitive(source)

Creates a numeric JsonPrimitive from the given UInt.

The value will be encoded as a JSON number.


fun JsonPrimitive(value: <Error class: unknown class>): JsonPrimitive(source)

Creates a numeric JsonPrimitive from the given ULong.

The value will be encoded as a JSON number.


Creates a JsonPrimitive from the given string.


Creates JsonNull.