gavo.formats.jsontable module¶
Writing tables in JSON.
We use python’s built-in json engine to write an – as yet – ad-hoc json format that essentially looks like this:
{
"contains": "table",
"columns": { (column metadata more or less as in VOTable) }
"data": { (rows as tuples) }
("warnings": [...])
}
No streaming at all is forseen for this format at this point.
Note that we don’t do any custom type serialisers here; all the stringification (or whatever) necessary happens within our own mappers (utils.serializers or wherever something is added to the defaultMFRegistry).
- class gavo.formats.jsontable.JSONMetaBuilder(jsonStructure)[source]¶
Bases:
MetaBuilder
A MetaBuilder for mapping table meta information into our standard JSON structure.