Skip to content

stableStringify

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/docs-repo/sidecar.ts

Deterministic JSON: object keys sorted recursively, 2-space indent, trailing newline. Arrays keep their order (the caller has already ordered them meaningfully). This is what guarantees byte-stability across reconciles for an unchanged logical input.

Signature

ts
function stableStringify(value: unknown): string

Parameters

NameType
valueunknown

Returns: string

Was this page helpful?

Download as PDF