Browse files

Improve codec documentation

  • Loading branch information...
allantl committed Sep 22, 2017
1 parent c3e0515 commit a4780a4dbfef77986e12b1e5e76f986664677933
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/src/main/tut/
@@ -122,7 +122,7 @@ do so in a couple of ways.
Firstly, you can write a new `Encoder[A]` and `Decoder[A]` from scratch:
import io.circe.{ Decoder, Encoder, HCursor }
import io.circe.{ Decoder, Encoder, HCursor, Json }
class Thing(val foo: String, val bar: Int)
@@ -230,6 +230,8 @@ Since this is a common use case, we also support for mapping member names via an
import io.circe.generic.extras._, io.circe.syntax._
implicit val config: Configuration = Configuration.default
@ConfiguredJsonCodec case class Bar(@JsonKey("my-int") i: Int, s: String)
Bar(13, "Qux").asJson

0 comments on commit a4780a4

Please sign in to comment.