JsonArrayBuilder

class JsonArrayBuilder(initialValues: List<JsonValue> = emptyList())

Builder class for creating JSON arrays in a structured and type-safe manner.

Provides methods to add various types of elements, such as primitive values, nulls, other JSON arrays, and JSON objects, to a JSON array being constructed.

Constructors

Link copied to clipboard
constructor(initialValues: List<JsonValue> = emptyList())

Functions

Link copied to clipboard
fun add(value: Any?): JsonArrayBuilder
Link copied to clipboard
Link copied to clipboard