Closed guersam closed 4 months ago
Currently summon[JsonCodec[zio.json.ast.Json]] fails even though there are implicit encoder and decoder.
summon[JsonCodec[zio.json.ast.Json]]
This PR allows codec derivation for types that already have encoder and decoder, in the same way of the current collection codec derivation.
There's a problem with Scala 2.12 :thinking: Is it acceptable to provide the derivation for 2.13 or above only?
@guersam Yes, that's acceptable.
Currently
summon[JsonCodec[zio.json.ast.Json]]
fails even though there are implicit encoder and decoder.This PR allows codec derivation for types that already have encoder and decoder, in the same way of the current collection codec derivation.