FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
json-canon: A Strict RFC 8785 Implementation in Go for Deterministic JSON
NewsWeb Development

json-canon: A Strict RFC 8785 Implementation in Go for Deterministic JSON

via Dev.toMark Lenhardt1mo ago

JSON is not deterministic. Object key order, number formatting, and whitespace vary across serializers, languages, and runtime versions. For most applications this doesn’t matter. For systems that sign, hash, or compare JSON by its raw bytes, it is a correctness failure. RFC 8785 — the JSON Canonicalization Scheme (JCS) — defines a canonical form that eliminates this nondeterminism. It specifies lexicographic key sorting, ECMAScript-compatible number serialization, and I-JSON constraints to produce byte-identical output for logically equivalent data. json-canon is an infrastructure-grade RFC 8785 implementation in pure Go. v0.2.0 was released on February 27, 2026. This post explains why it was built, the engineering decisions behind it, and who it is for. The problem in practice Consider two services that independently serialize the same data structure. One produces {"amount":1e2} and the other produces {"amount":100} . Both are valid JSON representing the same value. If either system

Continue reading on Dev.to

Opens in a new tab

Read Full Article
14 views

Related Articles

News

Scaling a Monolith to 1M LOC: 113 Pragmatic Lessons from Tech Lead to CTO

Lobsters • 5d ago

When Google Isn’t Enough: Finding Real Programming Assignment Help in New Jersey (and Beyond)
News

When Google Isn’t Enough: Finding Real Programming Assignment Help in New Jersey (and Beyond)

Medium Programming • 5d ago

PROJETO AURORA X
News

PROJETO AURORA X

Dev.to • 5d ago

Surfshark Promo Codes: 87% Off | March 2026
News

Surfshark Promo Codes: 87% Off | March 2026

Wired • 5d ago

Fast regex Matching with Indexing
News

Fast regex Matching with Indexing

Lobsters • 5d ago

Discover More Articles