-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Object#to_json(io) definition missing #3106
Comments
The problem is that |
Maybe sth along the lines of: class Object
def to_json(io)
io << to_s.to_json
end
end |
I think ISO8601 would be a fair default value for JS seems to default to that too: JSON.stringify({"foo": (new Date())})
"{"foo":"2016-08-07T07:19:39.733Z"}" |
I'm with @jhass, there isnt any defined format for Time in JSON but there are acceptable ones. ISO8601 looks perfect to me. |
I agree that ISO8601 should be a good default for |
Why don't we handle this already? @asterite i think this should be trivial to implement. |
Hi, I've just encountered below error and noticed there's no
Object#to_json(io)
counterpart, is it intentional or just an omission?https://carc.in/#/r/16d8
The text was updated successfully, but these errors were encountered: