spray / spray-json

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

Provide implicits automatically without extra imports #308

Closed jrudolph closed 4 years ago

jrudolph commented 5 years ago

By providing the predefined implicits directly from the companion object of JsonFormat no extra imports are needed for simple usages. That's standard for any type-class based library but we missed it back then.

The difficulty is to keep everything compatible but it seems I found a way that it is simple and compatible.

Let's keep an open tab of implicits that have been converted in that style:

All of those are included in #309.

jrudolph commented 4 years ago

Fixed by #309.