Module json

Source
Expand description

Minimal JSON implementation (reading + writing), with no external dependency.

Aède persists its catalog in a JSON file whose structure mirrors the target relational schema (schema.sql) exactly: one key per “table”, each table being an array of rows. Storage remains JSON; a future database migration can preserve these concepts without changing the domain model.

Structs§

ParseError
Reason a document was refused, with enough detail to point at the guilty spot in the file.

Enums§

Json
A JSON value held in memory, as the catalog manipulates it between the file and the model.

Functions§

parse
Reads a whole document and returns its root value.