API Reference
stableJsonString()
Stable JSON string: object keys sort by code-unit order for deterministic storage/checkpoint bytes.
Import
import { stableJsonString } from "@graphrefly/ts";
Signature
function stableJsonString(value: unknown): string
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
A string value.
Example
import { stableJsonString } from "@graphrefly/ts";
Source
packages/ts/src/json/codec.ts