spray / spray-json

A lightweight, clean and simple JSON implementation in Scala
Apache License 2.0
969 stars 190 forks source link

Provide jsonFormatN methods instead of explicit numbers #311

Closed jrudolph closed 5 years ago

jrudolph commented 5 years ago

The main drawback is that you always have to write jsonFormatN(X.apply _) instead of jsonFormat15(X) which worked before if X had no companion object.

The trade-off seems still worthwhile, needs a bit of relearning but then it's much easier to add and remove fields.

Refs #310

jrudolph commented 5 years ago

Failure related to https://github.com/spray/spray-json/pull/320. Will rebase after that one is merged to reverify.