FA-223 / Serialization / Member archive
Sorting only the root leaves unstable nested JSON output · case 03
Equivalent nested objects produce different byte strings depending on insertion order.
Case contract
Serialize a JSON-compatible object with string keys using Python's JSON representation, recursive key sorting, no optional spaces, literal Unicode, and finite numbers only. Return None for unsupported values. This is a specified deterministic format, not a claim of RFC 8785 conformance.
Why this case matters
Bytewise snapshots and content digests require deterministic nested serialization. Sorting only the visible outer map leaves hidden order dependence.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| root ordering | "{\"z\":3,\"a\":0}" | "{\"a\":0,\"z\":3}" | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗