api / tv.twelvetone.json / JsonValue / readFromReader

readFromReader

fun readFromReader(reader: Reader): JsonValue
Deprecated: Use {@link Json#parse(Reader)} instead

Reads a JSON value from the given reader.

Characters are read in chunks and buffered internally, therefore wrapping an existing reader in an additional BufferedReader does not improve reading performance.

Parameters

reader - the reader to read the JSON value from

Exceptions

IOException - if an I/O error occurs in the reader ParseException - if the input is not valid JSON

Return
the JSON value that has been read