-
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.scalayou declaresealed case Data(x: Int)and inUsage.scalayou haveimport io.circe.Json // needed? // for .asJson methods to be "added" to classes for which implicit encoders exist import io.circe.syntax._
-
object Usage {