FR-001checkpassingA codec MUST be a media type and two functions that end in results and never throw: encode from a value to bytes and decode from bytes to a value with whether the bytes were written at an older version; JSON MUST be written canonically (keys in order, two-space indentation, one newline at the end) so that one value is one set of bytes and, on a store that names revisions by content, one revision; toJsonValue MUST refuse what is not JSON (an undefined value, a number that is not finite, a bigint, a lone surrogate, an object that is not plain, a nesting deeper than 64) with the reason.