parse
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)andLong(64)for typed integers.Date("2025-01-02T15:04:05.058Z")for ISO 8601 timestamps.BinData("...")for Base64-encoded binary data.Counter(Int(10))orCounter(Long(100))for Counter CRDTs.
Parameters
yson
YSON formatted string.
Throws
with YorkieException.Code.ErrInvalidArgument when parsing fails.