Added support for toJSON()
v1.0.4 --> v1.1.0