Skip to content
This repository has been archived by the owner. It is now read-only.

Extract to case-class-like types #23

Open
propensive opened this issue Aug 26, 2015 · 4 comments
Open

Extract to case-class-like types #23

propensive opened this issue Aug 26, 2015 · 4 comments
Assignees

Comments

@propensive
Copy link
Owner

@propensive propensive commented Aug 26, 2015

We should generalize extraction of case-class types to any type which has a factory-like apply method on its companion object (for which all parameters are types which are extractable).

We could also investigate support for serializing to types with unapply methods.

@cb372
Copy link

@cb372 cb372 commented Aug 26, 2015

Just to add some background, I'm trying to deserialize JSON into classes that have been generated from a Thrift definition by Scrooge. So the code looks like https://gist.github.com/cb372/2d19d5f84af39f4edcd5

@cb372
Copy link

@cb372 cb372 commented Sep 6, 2015

By the way we fixed json4s to handle this. See json4s/json4s#288 and json4s/json4s#293

@propensive
Copy link
Owner Author

@propensive propensive commented Sep 6, 2015

Ah, cool - thanks for letting me know!

@propensive
Copy link
Owner Author

@propensive propensive commented Sep 6, 2015

I'll keep this open, because I'd still like to have the feature, though...

@propensive propensive self-assigned this Jan 11, 2016
@propensive propensive added this to the 2.0.0-M5 Maya milestone Jan 31, 2016
@mielientiev mielientiev modified the milestone: 2.0.0-M9 Mixtec Jan 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants