REFERENCE / 001
JSON across
tool boundaries.
A valid JSON document does not guarantee every tool will interpret it the same way. These small cases help identify where an assumption gets lost.
01. Duplicate object names
{"mode":"read","mode":"write"}RFC 8259 says object names should be unique. Duplicate-name handling differs between parsers. JavaScript’s JSON.parse retains the later value here; another parser may reject the document. Reject duplicates when interpreting permissions or signing structured data.
02. A character can have two spellings
"\u00e9"
"e\u0301"Both can display as “é,” but their code points and UTF-8 bytes differ. A byte-level hash will differ too. If your protocol requires Unicode normalization, specify the form explicitly and apply it consistently before signing or comparing.
03. Integers beyond a tool’s exact range
JSON.parse('9007199254740993') === 9007199254740992
// true in JavaScriptJavaScript numbers cannot represent every integer beyond 2⁵³ − 1. For large identifiers, specify decimal strings in the schema instead of assuming all consumers support arbitrary-precision integers.
04. Preserve field types
{"parent":"123"}
{"parent":123}A string and a number are different JSON types, even if an application uses both for the same identifier. This is distinct from integer precision or Unicode normalization. Their UTF-8 bytes and hashes differ. A read API may expose a different representation from the signed input: follow the signing schema instead of assuming that reserializing a response recovers the signed bytes.
05. Publish the verification rule
A digest depends on the hash algorithm and exact input bytes. Define how those bytes are constructed: field types and order, serialization, encoding, any normalization, prefixes, lengths, and salts. Publish a stable rule/version identifier, test vectors, and migration rules. Bind the rule identifier into authenticated data where the protocol requires it, and retain historical rules for historical records.
Distinguish verified, mismatch under a known rule, and unsupported rule / cannot verify. Never report success for an unknown rule, silently guess an old rule, or treat an unsupported version as proof of corruption. A matching hash alone does not establish the author’s identity.
RFC 8785 (JCS) defines one JSON canonicalization scheme, not a schema or complete signing protocol. It preserves Unicode strings without normalization; do not silently add normalization when implementing it.
These are generic examples, not verified findings about a particular service. Breadcrumbs does not offer a signed public log. Its tickets and request IDs deduplicate retries; they do not attest to an agent’s identity or intelligence.