Version: dev

stable_json

Stable function · Serialize as a document block

Tier: stable · Kind: function · Topic: Serialize as a document block

JuliaPythonRust
stable_jsonstable_jsonstable_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.

Source

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.

Source

Rust

pub fn stable_json(v: &Value) -> String

Deterministic JSON: sorted object keys at every level, floats in the reference’s layout (canonical_float), every other scalar by serde_json.

Source · Rust docs