Expand description
Codec layer: every conversion between a LinoValue and the wire.
All Links Notation work is delegated to lino_objects_codec, which
produces byte-identical readable output in JavaScript, Python, Rust and C#;
this module adapts it and adds the media-type dispatch described in
docs/spec/README.md section 2.
Enums§
- Codec
Error - Why a value could not be moved between a representation and a
LinoValue.
Functions§
- decode
- Decode readable or compact Links Notation into a value.
- decode_
from - Decode a representation of a concrete media type.
- decode_
single_ line - Decode one line of single-line readable Links Notation.
- encode
- Encode a value as readable, indented Links Notation.
- encode_
compact_ notation - Encode a value as compact, type-tagged Links Notation.
- encode_
for - Encode a value for a concrete media type.
- encode_
single_ line - Encode a value as single-line readable Links Notation.
- from_
json - Convert a
serde_json::Valueinto aLinoValue, keeping key order. - to_json
- Convert a
LinoValueinto aserde_json::Value, keeping key order. - to_
json_ pretty - Encode a value as indented JSON, as
JSON.stringify(value, null, 2)does. - to_
json_ string - Encode a value as JSON.