LIXI has published JSON schema specifications corresponding to each of the transaction schemas in XML since the 31st October 2017. The production of these JSON schemas has been fully automated in LIXILab, and will be published with each and every standards release. The structural and data type conventions used in defining the JSON schema are described in detail on this page.
The initial work was a collaborative effort between LIXI Limited and the School of Systems, Management and Leadership within the Faculty of Engineering and Information Technology at the University of Technology Sydney.
Note: We've written about easy ways to convert between valid LIXI2 XML and JSON in this blog post.
Key requirements that were taken into consideration in determining the conventions used include:
- The schema and conversion conventions should ensure no data is lost in either direction (XML to JSON or JSON to XML).
- A JSON message's tree structure will remain the same as the XML message structure (parent/child relationships are maintained) so that the existing documentation and related tools remain valid.
- A JSON message will implement native JSON types where appropriate (string, number, integer etc.).
- If possible, a non-breaking change to the XSD should also be non-breaking to the JSON schema.
- Maximise compatibility of the JSON schema with the tools that developers use to generate code based on the schema.
Related Blog Posts
First Published: 1st November 2017 | Last Updated: 3rd August 2021