bizzabo / play-json-extensions

+22 field case class formatter and more for play-json
http://cvogt.org/play-json-extensions/api/
Other
195 stars 47 forks source link

@JsonFormat macro annotation #37

Open graingert opened 7 years ago

graingert commented 7 years ago

JsonFormat macro annotation for lazy people

instead of

case class X(v: String)
object X {
   implicit lazy val format = Json.format[X]
}

just do:

@JsonFormat
case class X(v: String)
graingert commented 7 years ago

From https://github.com/aparo/play-json-extra