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

Support subclasses #8

Open
Zalastax opened this issue Jan 23, 2015 · 1 comment
Open

Support subclasses #8

Zalastax opened this issue Jan 23, 2015 · 1 comment

Comments

@Zalastax
Copy link
Collaborator

I don't think we can handle subclasses right now.
This is how Jackson solves it: http://wiki.fasterxml.com/JacksonPolymorphicDeserialization
I'm not sure how this should be implemented since we use CTFE. My idea is to generate code for all know sub-classes. I don't know how we find those sub-classes. Another problem is that when a sub-class is added all modules that use painlessjson will have to be recompiled.

@BlackEdder
Copy link
Owner

Good point. Also can't think of a better way of doing it. Would be nice to support, not sure how to do it though. Did you happen to look whether cerealed supports it?

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

2 participants