parse

fun parse(yson: String): YsonValue

parse parses a YSON formatted string into a typed YsonValue.

YSON extends JSON with the following type constructors:

  • Text([...]) for the Text CRDT.

  • Tree({...}) for the Tree CRDT.

  • Int(42) and Long(64) for typed integers.

  • Date("2025-01-02T15:04:05.058Z") for ISO 8601 timestamps.

  • BinData("...") for Base64-encoded binary data.

  • Counter(Int(10)) or Counter(Long(100)) for Counter CRDTs.

Parameters

yson

YSON formatted string.

Throws