readJsonValue

fun readJsonValue(): Any

Returns the value of the next token, consuming it. The result may be a string, number, boolean, null, map, or list, according to the JSON structure.

See also

Throws

if the next token is not a literal value, if a JSON object has a duplicate key.