JsonArrayBuilder

DSL builder for a JsonArray. To create an instance of builder, use buildJsonArray build function.

Functions

Link copied to clipboard
fun add(element: JsonElement): Boolean

Adds the given JSON element to a resulting JSON array.

Link copied to clipboard

Adds the given boolean value to a resulting JSON array.

Adds null to a resulting JSON array.

Adds the given numeric value to a resulting JSON array.

Adds the given string value to a resulting JSON array.

Link copied to clipboard

Adds the given JSON elements to a resulting JSON array.

Link copied to clipboard

Adds the given boolean values to a resulting JSON array.

Adds the given numeric values to a resulting JSON array.

Adds the given string values to a resulting JSON array.

Link copied to clipboard

Adds the JSON array produced by the builderAction function to a resulting JSON array.

Link copied to clipboard

Adds the JSON object produced by the builderAction function to a resulting JSON array.