Add JSON Serialization
Non-breaking changes
- Exposed the
CuriousObject
class to consumers asCuriousObjects.defaultType
- Added object method
toJSON
toCuriousObject
, which allowsJSON.stringify
to correctly
serialize them - Added static method
fromJSON
toCuriousObject
, which allows easier parsing from strings into
CuriousObject instances