Skip to content
Opensource internals
  • Posts

Encoding

How Go's JSON Parser Avoids Reflection: The Scanner and the v2 Experiment

Oct 21, 2026 22 min read Jay Hubbert

encoding/json scans and decodes in two separate passes over the input, caching every per-type decision, while the experimental v2 splits the grammar into a jsontext syntax layer …

GoInternalsJSONEncodingPerformance

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·