jsonArray

fun jsonArray(raw: String, arrayAction: JSONArray.() -> Unit): JSONArray

Answer a JSONArray that has had the provided arrayAction applied to it.

Return

A JSONArray.

Parameters

raw

The raw JSON as a string.

arrayAction

A lambda that accepts the created and returned JSONArray.


fun jsonArray(reader: Reader, arrayAction: JSONArray.() -> Unit): JSONArray

Answer a JSONArray that has had the provided arrayAction applied to it.

Return

A JSONArray.

Parameters

reader

The Reader that contains the JSON content.

arrayAction

A lambda that accepts the created and returned JSONArray.