Added support for JSON serialization of objects via todict() and fromdict() methods

Underlying objects now support conversion to and from JSON serializable form.