Scala 2.10, its impact on JSON libraries and case class validation/creation

前端 未结 3 2016
悲哀的现实
悲哀的现实 2021-02-01 17:35

In Scala 2.10 apparently we\'re getting improved reflection.

How will this impact lift-json, jerkson, sjson and friends? Furthermore, can we expect in the not too distan

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-01 18:10

    Jerkson handles your use case today!

    Json.generate(foo)
    

    It also supports streaming reads and writes which we use extensively in production.

    Json.generate(foo, outputStream)
    Json.parse[Foo](inputStream)
    

    We originally used lift-json but its lack of streaming support for case classes made it unusable for reading and writing large json documents. Jerkson is also super fast and handles nested case classes perfectly.

提交回复
热议问题