Skip to content

json

JSON encoding and decoding.

Functions

decode

json::decode(string) -> value

JSON string to value

encode

json::encode(value) -> string

Value to JSON string

msgpack_decode

json::msgpack_decode(bytes) -> value

Decode MessagePack bytes into a value. Requires the msgpack cargo feature.

msgpack_encode

json::msgpack_encode(value) -> bytes

Encode value as MessagePack bytes. Requires the msgpack cargo feature.

pretty

json::pretty(value) -> string

Pretty-printed JSON string

Documentation reflects Ion v0.2.0-66-g3faa376.