JsonPrimitive

fun JsonPrimitive(value: Boolean?): JsonPrimitive

Creates JsonPrimitive from the given boolean.


fun JsonPrimitive(value: Number?): JsonPrimitive

Creates JsonPrimitive from the given number.


fun JsonPrimitive(value: String?): JsonPrimitive

Creates JsonPrimitive from the given string.


fun JsonPrimitive(value: Nothing?): JsonNull

Creates JsonNull.