default
Default value for this property.
Accepts List<*>, JsonElement, or null. List values are automatically converted to JsonArray with items converted as follows:
String → JsonPrimitive
Number → JsonPrimitive
Boolean → JsonPrimitive
null → JsonNull
JsonElement → used as-is
Throws IllegalStateException for unsupported item types or non-List values.
Example
array {
default = listOf("a", "b", "c")
}Content copied to clipboard