JSONReader

class JSONReader constructor(reader: Reader) : Closeable

A JSONReader produces JSON-friendly value given a valid JSON document.

Author

Todd L Smith

Parameters

reader

The source of the raw JSON document. The reader must support marking.

Throws

If the reader does not support marking.

Constructors

Link copied to clipboard
fun JSONReader(reader: Reader)

Construct a new JSONReader.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun read(): JSONData

Read the entire underlying JSON document as a single JSONData.