-
add
import io.circe.generic.auto._
where you use the auto-derived JSON encoders and decoders (don't import at file-level, but instead on object/class-level!)-
e.g. in a file
Datastructures.scala
you declaresealed case Data(x: Int)
and inUsage.scala
you haveimport io.circe.Json // needed? // for .asJson methods to be "added" to classes for which implicit encoders exist import io.circe.syntax._
-
object Usage {