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

com.squareup.moshi.JsonWriter

JsonWriter#jsonValue(Object)

Throws

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