Skip to content
PACKAGES

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 { strictJsonCodecFor } from "@graphrefly/ts/storage";
function strictJsonCodecFor(): Codec<T>

A Codec<T> value.

import { strictJsonCodecFor } from "@graphrefly/ts/storage";

packages/ts/src/json/codec.ts