pub fn to_json(catalog: &Catalog) -> JsonExpand description
Turns a catalog into its JSON document, one array per table.
Exposed apart from save so callers can inspect or divert the document
without writing it. The result carries the current FORMAT_VERSION, so a
round trip through from_json is always accepted.