-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JSON types #61
Add JSON types #61
Conversation
Define explicit types for legal plain JSON values to avoid double-deserialization shenanigans. Fixes #59.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will probably pull this down to look into some things, but this is a great start! thanks @ms1111
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Some comments around JsonValue vs JsonObject
Conflicts: from_json/as.ts serializable.ts to_json/recursive.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ms1111 LGTM
Fixes
#59 - JsonNode type
Description
Define explicit types for legal plain JSON values to avoid double-deserialization shenanigans.
Fixes #59.
Proposed changes in this PR
Adds JsonValue and JsonObject types to make ToJsonStrategy and FromJsonStrategy more specific.
Things to look at