json5Treeconstconst json5Tree: Codec<JsonValue>JSON5 trees: comments and trailing commas are read; the text written is the format's own.
The codecs of documents that need the file formats of commons: JSON5 and YAML trees. They read what the format holds as a JSON value and write it back in the format's own canonical text; use versioned over one of them for a typed document with a version.
import { yamlTree } from "@intellectual-frontiers/anyfs/docs/formats";
yamlTree.mediaType; // "application/yaml"json5Treeconstconst json5Tree: Codec<JsonValue>JSON5 trees: comments and trailing commas are read; the text written is the format's own.
yamlTreeconstconst yamlTree: Codec<JsonValue>YAML trees, in the core schema.