Hi,
Nope. You're limited to 22 parameters in a case class right now.
However, if you just want to turn a Map[String, Any] to JSON and you
don't care about being able to deserialize it back to a model object,
I just added that ability to 1.9.2-SNAPSHOT.
See MapToJSON
https://github.com/novus/salat/blob/master/salat-core/src/main/scala/com/novus/salat/json/ToJValue.scala
And a usage example in the specs here:
https://github.com/novus/salat/blob/master/salat-core/src/test/scala/com/novus/salat/test/json/JsonMapSupport.scala
You feed MapToJSON a Map[String, Any] and it gives you back a compact
rendered JSON string.
Best,
Rose
On Nov 1, 10:57 am, devmunky <
devmu...@gmail.com> wrote:
> Hi There,
>
> First of all i'd like to say hello and forgive me for being a n00b at
> scala. Coming from a php/ruby background and trying to branch out :)
>
> Right - that's out of the way.
>
> Basically i'm trying to create a rest service which currently proxies the
> output from an external service, saves the results in mongo and provides a
> local interface for this info. I seem to have hit an issue with a case
> class parameter limit being 22 parameters max. Is there an alternative to
> using a case class for annotations in salat?
>
> Many thanks.