Chemaxon Object Notation - CXON

    Code: cxon

    Chemaxon Object Notation (CXON [sɪksɒn]) is a Chemaxon specific JSON representation for chemical documents.

    About the format

    The CXON file format is primarily designed to support web based transfer of chemical documents. CXON files can store both chemical (explicit molelcules, Markush structures, chemical reactions) and graphical content (visual properties, graphical objects, formatted text boxes, etc.).

    Main characteristics:

    • A CXON document is a well formed JSON
    • The applied standards were chosen to support the matching of the content to web-based technologies, e.g. HTML color-codes are used to represent colors or the standard SVG Path is used to store graphical paths
    • A CXON document can be easily inserted in REST payloads as is
    • CXON can be used with JSON.stringify and JSON.parse natively in JavaScript

    Schema

    The CXON format has a JSON Schema descriptor.

    {warning} Backward compatibility glitch in CXON schema between version 1.5.0 and 1.10.0 (inclusive). Attached data has been introduced with a mistake in the type of its target field. The field should have been introduced as an array of strings, but was introduced as a string. If compatibility with versions between 1.5.0 and 1.10.0 (inclusive) is a must, please prepare to receive the target field as a string as well