add

open fun add(value: Boolean)

Add a boolean between previous and next elements.

Parameters

value

The value to add.

Throws


open fun add(value: Double)

Add a double-precision floating-point number between previous and next elements.

Parameters

value

The value to add.

Throws


open fun add(value: Int)

Add an integer between previous and next elements.

Parameters

value

The value to add.

Throws


open fun add(@NonNull array: Json.Array)

Add an array between previous and next elements.

Parameters

array

The array to add.

Throws


open fun add(@NonNull dict: Json.Dict)

Add a dictionary between previous and next elements.

Parameters

dict

The dictionary to add.

Throws


open fun add(@NonNull object: Json)

Add an object between previous and next elements.

Parameters

object

The object to add.

Throws


open fun add(@NonNull string: String)

Add a string between previous and next elements.

Parameters

string

The string to add.

Throws