writeArray

inline fun <R> writeArray(action: JSONWriter.() -> R): R

Write an array, using an action to supply the contents.

Parameters

action

An action that writes the contents of an array.

Throws

If an I/O exception occurs.

If an array cannot be written.


fun writeArray(values: Iterator<JSONFriendly>)

Write an array of JSON-friendly values.

Parameters

values

An Iterator of JSONFriendly values.

Throws

If an I/O exception occurs.

If an array cannot be written.


fun writeArray(values: Iterable<JSONFriendly>)

Write an array of JSON-friendly values.

Parameters

values

An Iterable of JSONFriendly values.

Throws

If an I/O exception occurs.

If an array cannot be written.


fun writeArray(values: Sequence<JSONFriendly>)

Write an array of JSON-friendly values.

Parameters

values

An Sequence of JSONFriendly values.

Throws

If an I/O exception occurs.

If an array cannot be written.