node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

gchempaint2json

gchempaint2json

Convert simple gchempaint files containing just molecules to a JSON representation.

Output format

See benzene.json

API

convert(xml)

XML is expected to be an XML string representing a gchempaint document. Returns the JSON representation of the document.