I love working in Scala and ScalaJS. This library is my opinionated wrapper of several libraries merged to efficiently working in JSON word.
Main Features are:
- Play JSON for ScalaJS
- JsonFormat macro annotation for lazy people
- Default field values populated in missing JSON field
- Field rewrite for Play JSON ("key")
- +22 field case class formatter and more Play Json Extension
- Joda Datetime for Scala and ScalaJS
- Strong Typed Enum (String and Int) for Scala and ScalaJS
- Variant Types
Full Documentation here.
For the stable version (to be release):
resolvers += "Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
libraryDependencies += "io.megl" %% "play-json-extra" % "2.4.3"
For the snapshot version:
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies += "io.megl" %% "play-json-extra" % "2.4.3-SNAPSHOT"
play-json-extra requires scala 2.11.x
Full Documentation here.
Thank you very much to:
- Li Haoyi for upickle and all his scalaJS stuff
- Jan Christopher Vogt for Play JSON Extensions
- Chris Neveu for Macramé
- Julien Richard-Foy for Play JSON Variants
- The ScalaJS team
- The Play Framework team