Skip to content
PACKAGES

stableJsonString()

Stable JSON string: object keys sort by code-unit order for deterministic storage/checkpoint bytes.

import { stableJsonString } from "@graphrefly/ts/storage";
function stableJsonString(value: unknown): string
ParameterTypeDescription
valueunknownUnknown value to check or decode.

A string value.

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

packages/ts/src/json/codec.ts