The Play 2.1 json library relies heavily on combinators (path1 and path2
). These combinators all have the same 22 restriction. That gives you two options:
- Don't use combinators and construct your objects the hard way:
path(json)
will give you the value at that point in the path. Searching for 'Accessing value of JsPath' at ScalaJsonCombinators will give more examples. - First transform the json into a structure that does not have more than 22 values in a single object and then use the normal combinators. More information about transforming can be found here: ScalaJsonTransformers