jsonReader

fun jsonReader(raw: String, readerAction: JSONReader.() -> Unit = {}): JSONReader

Answer a JSONReader that has had the provided readerAction applied to it.

Return

A JSONReader.

Parameters

raw

The raw JSON as a string.

readerAction

A lambda that accepts the created and returned JSONReader.


fun jsonReader(reader: Reader, readerAction: JSONReader.() -> Unit = {}): JSONReader

Answer a JSONReader that has had the provided readerAction applied to it.

Return

A JSONReader.

Parameters

reader

The Reader that contains the JSON content.

readerAction

A lambda that accepts the created and returned JSONReader.