Issue #2503: json::write[T] writes a declared type under the member names json::read[T] reads

Open and answer this issue on GitHub.

ready, json · opened 2026-11-21 · updated 2026-11-22 · 0 comments

Part of #1019 After #2501

What it is

json::write[T] writes a value of a declared type over T::kind and T::fields, sharing wire_name with the read so a value written reads back under the same member names (ADR-grammar-2 D8, now in ADR-grammar-typed-read-v1). This is step 7 of #1019; it comes after the package grammar (step 6, #2501), whose read it mirrors.

To build

  1. json::write[T] over T::kind and T::fields in packages/json/, sharing wire_name with json::read[T]. Test: a package test writing a struct with a renamed field and reading it back with json::read[T], its .stdout showing the same value.

Done when

json::write[T] writes a struct under the member names json::read[T] reads, and the round-trip package test passes; that commit says Fixes #N.

Split from #1019 by Claude Code

Back to Open Issues