from

fun from(value: Any?): JsonElement(source)

Create a JsonElement from any anonymous value (Will throw an exception if it can't process the value)

Since

0.1.0


Create a JsonStringElement from a String

Since

0.1.0


Create a JsonBooleanElement from a Boolean

Since

0.1.0


Create a JsonDoubleElement from a Double

Since

0.1.0


Create a JsonDoubleElement from a Float

Since

0.1.0


Create a JsonIntegerElement from a Long

Since

0.1.0


Create a JsonIntegerElement from a Int

Since

0.1.0


Create a JsonIntegerElement from a Short

Since

0.1.0


Create a JsonIntegerElement from a Byte

Since

0.1.0


fun from(value: Map<String, Any?>): JsonObject(source)

Create a JsonObject from a Map of anonymous values

Since

0.1.0


fun from(vararg values: Pair<String, Any?>): JsonObject(source)

Create a JsonObject from anonymous values

Since

0.1.0


@JvmName(name = "fromElements")
fun from(value: Map<String, JsonElement>): JsonObject(source)

Create a JsonObject from a Map of JsonElements

Since

0.1.0


@JvmName(name = "fromElements")
fun from(vararg values: Pair<String, JsonElement>): JsonObject(source)

Create a JsonObject from JsonElements

Since

0.1.0


Create a JsonArray from a Collection of anonymous values

Since

0.1.0


fun from(vararg values: Any?): JsonArray(source)

Create a JsonArray from anonymous values

Since

0.1.0


@JvmName(name = "fromElements")
fun from(value: Collection<JsonElement>): JsonArray(source)

Create a JsonArray from a Collection of JsonElements

Since

0.1.0


@JvmName(name = "fromElements")
fun from(vararg values: JsonElement): JsonArray(source)

Create a JsonArray from JsonElements

Since

0.1.0