Skip to content

Json

Nicco Kunzmann requested to merge json into main

This works on #63.

The purpose is to expose the parsed data as test so that styling and other information can be reverse-engineered more easily using diff. For that purpose, the parsed object structure is converted to JSON. Command line usage - JSON, not SVG:

inkai --json example.ai

Attributes are ordered.

Changes

  • Convert documents to JSON

  • Add to_json() to AIElement

Checklist

  • Change is tested
  • Change is documented.
  • Licenses are up to date

Related

Merge request reports