score:-1

Try jsoniter-scala - it supports more than 10K fields for a case class.

Here is a test for 100 required fields.

Also this library has great performance characteristics, here are results of benchmarks which compare it vs. Jackson, Circe and Play-JSON libraries using JDK 8: http://jmh.morethan.io/?source=https://plokhotnyuk.github.io/jsoniter-scala/oraclejdk8.json

score:0

You can use kebs library - it uses Scala macros to create JSON formats for you.

Here is example for case class with more than 22 fields: https://github.com/theiterators/kebs/blob/fa9994086aac7eadd63c09c67e389a77c22beef7/spray-json/src/test/scala/SprayJsonFormatTests.scala#L161


Related Query

More Query from same tag