JsonObjectBuilder

DSL builder for a JsonObject. To create an instance of builder, use buildJsonObject build function.

Functions

Link copied to clipboard
fun put(key: String, element: JsonElement): JsonElement?

Add the given JSON element to a resulting JSON object using the given key.

Link copied to clipboard

Add the given boolean value to a resulting JSON object using the given key.

Add null to a resulting JSON object using the given key.

Add the given numeric value to a resulting JSON object using the given key.

Add the given string value to a resulting JSON object using the given key.

Link copied to clipboard

Add the JSON array produced by the builderAction function to a resulting JSON object using the given key.

Link copied to clipboard

Add the JSON object produced by the builderAction function to a resulting JSON object using the given key.