Added a toJSON method
Added json export instructions