Boilerplate free case class serialization with implicit macros
See discussion: https://groups.google.com/d/msg/spray-user/zTORNzACIp0/qTmDWi9TZ8EJ
Experimentation branch:
https://github.com/jrudolph/spray/tree/feature/json-case-class-implicit-macro
Wrote another macro-based formatter for current version of spray-json based on your naming.
Additionally, it allows declaring other values in case classes and avoids any use of runtime reflection so #53 can be solved as well.
What's left to do to get macro-based case class serialization in? Is there anything I can do to help?
@zackangelo Thanks for offer to help. We currently don't have any capacity for major changes/extensions to spray-json, so we can't really say when macro-based case class support will be available. Sorry!
@sirthias Thanks for responding! I'm sure you guys are swamped.
I went ahead and wrote a small macro library that supports my use cases (automatic formats for case classes with greater than 22 fields, field renaming, etc). I'll just leave a link here in case someone else finds it useful: https://github.com/zackangelo/spray-json-macros
Any feedback would be greatly appreciated.
Great, thanks for the pointer!
FYI https://github.com/fommil/spray-json-shapeless should solve this problem without any new macros.
@sirthias btw, it is worth pointing out that Miles convinced me that Apache v2 was more appropriate for spray-json-shapeless.