-
Notifications
You must be signed in to change notification settings - Fork 24
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
Case classes to json automatically #55
Comments
Hi @visox, Thank you for your feedback. Could you elaborate what you don't like about the code above and what you'd like to be able to do instead? Also when you say loosing some typesafety are you talking about typing constraints within your JSON structure (in your example If you wish to use some more advanced JSON library, I'd advise you to create a subclass of Issue #29 might be relevant to your case. |
hi
would be best. Including some default implicit write functions that one could still override
yes
i see :/ Thx for the suggestions. |
AFAIK transforming class structures to program data always involves reflectivity in Java which goes way beyond the scope of this library. I'm interested to know if there is a clean way to achieve this in Scala as #29 should keep the door open for a solution to your use case, if not solve it directly. |
I don't like to rewrite case classes into json like this:
It smells and i am also loosing some typesafety (lets say i have some structure that i share with backend and frontend)
There are many json parsers/solutions that do that, so its hopefully not too hard.
The text was updated successfully, but these errors were encountered: