Document structure

A KET file is one JSON object, the Document. Its Root says what the document contains. Molecules, R-groups, monomers and monomer shapes are stored under top-level keys of their own and listed in root.nodes by reference; templates are stored the same way and listed in root.templates; drawing objects are written inline in root.nodes. Concepts shows how the parts fit together.

  • Document — the top-level object: the version, the root, the header and the objects stored under keys of their own.

  • Root — what the document shows, the connections between its parts, and the templates they use.

  • Node reference — an element of root.nodes or root.templates, such as {"$ref": "mol0"}, that points to a stored object.

  • Point — a position written as an object with named coordinates, used by arrows, multi-tailed arrows, simple objects, KET 1.0 texts and monomers.