fromJson

fun fromJson(json: String): Variant

Parses json into a self-contained Variant — value bytes plus a dictionary holding only the names that document uses.

For ingest, share one dictionary across a segment instead; see JsonParser.parseInto.

Throws

if json is not valid JSON, with the position of the fault.


See the String overload. json must be UTF-8.