pub fn to_json(mol: &Molecule) -> Result<String>
Convert molecule to json string ready for template rendering