Round-trip conversion: SMILES → CJSON → SVG | Compatible with ChemDoodle Web Components
{
"m": [ // array of molecules
{
"a": [ // atoms
{ "x": 0.0, "y": 0.0, "l": "C" }, // x, y coords + element label
{ "x": 1.5, "y": 0.0, "l": "O", "c": -1 } // "c": formal charge (optional)
],
"b": [ // bonds
{ "b": 0, "e": 1, "o": 1 } // begin index, end index, order (1/2/3)
]
}
]
}