add

fun JsonArrayBuilder.add(value: Boolean?): Boolean

Adds the given boolean value to a resulting JSON array.

Always returns true similarly to ArrayList specification.


fun JsonArrayBuilder.add(value: Number?): Boolean

Adds the given numeric value to a resulting JSON array.

Always returns true similarly to ArrayList specification.


fun JsonArrayBuilder.add(value: String?): Boolean

Adds the given string value to a resulting JSON array.

Always returns true similarly to ArrayList specification.


fun JsonArrayBuilder.add(value: Nothing?): Boolean

Adds null to a resulting JSON array.

Always returns true similarly to ArrayList specification.