# Deterministic JSON serialization

Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment.

WHEN TO USE: Normalize JSON for cache keys or repeatable diffs. Recursively sorts object keys, preserves array order, and emits compact JSON plus UTF-8 byte length. Uses JavaScript numbers and JSON.stringify: integer-index keys serialize numerically before other sorted keys; large integers may already have lost precision. This is not RFC 8785 cryptographic canonicalization. Maximum 100,000 serialized characters, 1,000 entries per collection, depth 32.

Release: 0.29.0. Built: 2026-10-06T15:38:00Z.

## Choose for
- Sort JSON object keys for reproducible serialization.

## Outside this profile
- Cryptographic RFC 8785 canonicalization or lossless arbitrary-precision numbers.

Proposed nominal USD 0.003 per successful call; payer fees excluded. No verified runtime availability.

- [Exact release contract](/reference/services/json-canonicalize.json)
- [Input schema](/reference/schemas/json-canonicalize.input.json)
- [Output schema](/reference/schemas/json-canonicalize.output.json)
- [Fixed example](/reference/examples/json-canonicalize.json)
- [Complete HTML reference](/discover/tools/json-canonicalize)
