API Reference
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
import { strictJsonCodecFor } from "@graphrefly/ts";
Signature
function strictJsonCodecFor(): Codec<T>
Returns
A Codec<T> value.
Example
import { strictJsonCodecFor } from "@graphrefly/ts";
Source
packages/ts/src/json/codec.ts