You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support UUIDs being used directly in JSON mappings, I'd like to add the following methods to the standard library:
UUID.new(JSON::PullParser)
UUID#to_json(JSON::Builder)
I was thinking we'd add these to a new source file uuid/json.cr, and so you'd have to require "uuid/json" to opt in to the JSON support, similar to big/json.cr.
If this approach and feature is acceptable, I'd like to create a pull request for it.
The text was updated successfully, but these errors were encountered:
To support
UUID
s being used directly in JSON mappings, I'd like to add the following methods to the standard library:UUID.new(JSON::PullParser)
UUID#to_json(JSON::Builder)
I was thinking we'd add these to a new source file
uuid/json.cr
, and so you'd have torequire "uuid/json"
to opt in to the JSON support, similar tobig/json.cr
.If this approach and feature is acceptable, I'd like to create a pull request for it.
The text was updated successfully, but these errors were encountered: