Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Support a .toJSON method as part of the spec #10

Closed
daviddias opened this issue Aug 25, 2017 · 1 comment
Closed

Support a .toJSON method as part of the spec #10

daviddias opened this issue Aug 25, 2017 · 1 comment

Comments

@daviddias
Copy link
Member

@wanderer and @kumavis have shown a lot of interested to have a conversation to JSON as part of the standardised interface.

My only concern is that although we can have a .toJSON, we really can't expect to have a fromJSON, otherwise we would be asking every single format implementor to spend a lifetime figuring out all the quirks of JSON, specially because it does mangle binary and numeric types.

Are we ok with having a .toJSON without a .fromJSON? Is that what people want?

@daviddias
Copy link
Member Author

Following up on #11 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant