GraphReFlyTS

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

ParameterTypeDescription
valueunknownUnknown value to check or decode.

Returns

A string value.

Example

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

Source

packages/ts/src/json/codec.ts