stable_json
Stable function · Serialize as a document block
Tier: stable · Kind: function · Topic: Serialize as a document block
| Julia | Python | Rust |
|---|---|---|
stable_json | stable_json | stable_json |
Julia
stable_json(x)
stable_json(x) -> String
Deterministic JSON: object keys emitted in sorted order at every level,
scalars formatted by JSON3. Used for conformance goldens and for structural
expression keys (skey) — equal trees always produce equal text.
Python
stable_json(x: Any) -> str
Deterministic JSON: sorted object keys at every level, floats in the
reference’s layout (canonical_float) — emit.jl’s stable_json.