Next: , Previous: , Up: Other Formats   [Contents][Index]


7.6.3 JSON

We write to and read back from our own JSON format, which is a readable 1:1 mapping of the DWG structures, and carries much more information than the DXF format. The idea is to dump a DWG to JSON and filter/query or postprocess it with more powerful JSON query tools such as jq (https://stedolan.github.io/jq/), and optionally import it back in. See Programs: dwgfilter. JSON is much better structured than DXF.

The current first level objects are all the section names, like “HEADER”, “CLASSES”, “OBJECTS”. For more see the specs.

Note that for the versions before R13 we convert all tables to table control and record objects internally, so that we can use our iterators needed for DXF support. This does not reflect the internal DWG structure. See Tables.