Skip to content
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 support to UUID #5548

Closed
lachlan opened this issue Jan 6, 2018 · 1 comment
Closed

Add JSON support to UUID #5548

lachlan opened this issue Jan 6, 2018 · 1 comment

Comments

@lachlan
Copy link
Contributor

lachlan commented Jan 6, 2018

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.

@Sija
Copy link
Contributor

Sija commented Aug 27, 2018

Since #5551 has been merged, this can be closed now.

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

No branches or pull requests

3 participants