-
Notifications
You must be signed in to change notification settings - Fork 92
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
Extend JSON to include Int64, UInt64, Arbitrary(String) #1366
Comments
One possible solution is: For
For access custom data source (i.e. JSON shape isn't defined in MoonBit), we support them by adding a field to Number, something like: enum Json {
Number(Double, repr? : String)
} And for users who wants to manipulate the number, they can handle the match json {
{ "a" : Number(-100..<100) } => ...
{ "a" : Number(_, repr~) } => ...
} What do you think @gmlewis ? |
That sounds good to me, @peter-jerry-ye - please feel free to close #1345 or let me know if you would like me to do anything to support this. Thank you! |
|
For supporting arbitrary precision numbers, the transition will take several releases Release 1
Release 2
|
Spec
RFC 8259:
ECMA 404
Reference implementation
serde_json
gson
jackson
golang
Related
#1345
The text was updated successfully, but these errors were encountered: