Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
Code example:
import com.couchbase.client.scala.implicits.Codec |
import com.github.plokhotnyuk.jsoniter_scala.macros.CodecMakerConfig |
|
case class User(name: String, age: Int, addresses: Seq[Address]) |
object User {
|
implicit val codec: Codec[User] = Codec.codec[User](
|
CodecMakerConfig.withFieldNameMapper(
|
Map("name" -> "n", "age" -> "a", "addresses" -> "s") |
)
|
)
|
}
|