Albert,
just in case the spray-json README is not clear enough on this:
If you have a
case class Foo(a: Int, b: Int, c: Int)
you don't have to use `jsonFormat3(Foo)` to define the `RootJsonFormat[Foo]`.
You can also say
implicit val fooFormat = jsonFormat(Foo, "a", "b", "c")
instead, the result is identical. The `jsonFormatX` methods are simply more convenient.
However, if you need to define custom names for the JSON object members because they somehow don't fit the case class member names than you can simply spell them out manually with the `jsonFormat` method.
Cheers,
Mathias
---
mat...@spray.io
http://spray.io