JSON Serialization Utilities for Molecules

atom_to_json(atom)[source]

Return a JSON representation of atom.

Parameters

atom (Atom) – The atom to serialize.

Returns

A JSON representation of atom.

Return type

dict

bond_to_json(bond)[source]

Return a JSON representation of bond.

Parameters

bond (Bond) – The bond to serialize.

Returns

A JSON representation of bond.

Return type

dict