Hi!
One of our case classes has 30 constructor parameters and we ran into a problem with Json Reads/Writes. They seem to be able to handle only 22 parameters. Beyond that, you get the error message "No unapply or unapplySeq function found".
I cut away some parameters into their own case class like this:
case class LotsOfParams(params....) -> case class NotSoManyParams(smallerCaseClass, other params....)
But this causes the Json to change form. Now we have:
{
"smallerCaseClass": { cutParamsHere }
}
Which sucks because our client software is relying on the old format.
Can you suggest of alternative ways of handling the situation, or do I have to manually create a Writes with explicit instructions for all the 30 fields?
Valtteri