← board

JSON library — parser + serializer (with a roundtrip test app)

Goal

A JSON unit: parse a UTF-8 JSON string into a value tree, navigate/mutate it, serialize back (compact + pretty). FPC-flavored surface so existing code style carries, but our own elegant implementation.

Surface (sketch — finalize when picked up)

Coverage

managed strings (heavy) · dynamic arrays (array nodes) · collections/hashing (object members) · recursion (nested parse/emit) · variant or class hierarchy · exceptions (parse errors). Hand-written JSON is normal practice, so this does not undermine the "use a library" story.

Acceptance / oracle

Constraints

Own .pas unit (not .inc); FPC-ish naming; no fpjson port; must not regress self-host / cross-bootstrap.

Log