On Fri, Apr 26, 2013 at 5:06 PM, <
michael...@googlemail.com> wrote:
> I have a huge number of different case classes I want to serialize /
> deserialize. Using this approach I have to define a protocol for each class
> which is quite cumbersome. Is it possible to serialize / deserialize case
> classes using spray-json withou defining a protocol for each one of them?
There's an issue to track this:
https://github.com/spray/spray-json/issues/28
I don't think it's currently possible to support this in a type-safe,
configurable manner without falling back to reflection (but maybe that
would be ok). There's a solution on the horizon using macros, not sure
if it can be made to work with Scala 2.10 but maybe later with more
powerful macros.
--
Johannes
-----------------------------------------------
Johannes Rudolph
http://virtual-void.net