strictJsonCodecFor()
Build a strict canonical JSON codec (D84/D87/D96). The strict surface rejects malformed UTF-8, duplicate object keys, non-canonical bytes, unpaired surrogates, and values that cannot round-trip through stable JSON.
Import
Section titled “Import”import { strictJsonCodecFor } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function strictJsonCodecFor(): Codec<T>Returns
Section titled “Returns”A Codec<T> value.
Example
Section titled “Example”import { strictJsonCodecFor } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/json/codec.ts