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