https://github.com/evolution-gaming/play-json-tools
Play-Json helpers
https://github.com/evolution-gaming/play-json-tools
play-json scala
Last synced: 8 months ago
JSON representation
Play-Json helpers
- Host: GitHub
- URL: https://github.com/evolution-gaming/play-json-tools
- Owner: evolution-gaming
- License: mit
- Created: 2017-11-10T16:33:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T11:36:56.000Z (10 months ago)
- Last Synced: 2025-04-23T00:16:46.835Z (8 months ago)
- Topics: play-json, scala
- Language: Scala
- Homepage:
- Size: 226 KB
- Stars: 10
- Watchers: 5
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Play Json tools
[](https://github.com/evolution-gaming/play-json-tools/actions?query=workflow%3ACI)
[](https://coveralls.io/github/evolution-gaming/play-json-tools?branch=master)
[](https://www.codacy.com/app/evolution-gaming/play-json-tools?utm_source=github.com&utm_medium=referral&utm_content=evolution-gaming/play-json-tools&utm_campaign=Badge_Grade)
[](https://evolution.jfrog.io/artifactory/api/search/latestVersion?g=com.evolution&a=play-json-tools_2.13&repos=public)
[](https://opensource.org/licenses/MIT)
1. `play-json-tools` — Set of implicit Play-JSON `Format` helper classes. Example in [FlatFormatSpec](play-json-tools/src/test/scala/com/evolution/playjson/tools/FlatFormatSpec.scala)
2. `play-json-generic` — provides Format derivation for enum like adt's (sealed trait/case objects'). Examples in [EnumerationDerivalSpec](play-json-generic/src/test/scala/com/evolution/playjson/generic/EnumerationDerivalSpec.scala)
3. `play-json-jsoniter` — provides the fastest way to convert an instance of `play.api.libs.json.JsValue` to byte array and read it back.
4. `play-json-circe` — provides conversions to/from `circe` codecs to ease transitions from one library to another. Examples in [CirceToPlayConversionsSpec](play-json-circe/src/test/scala/com/evolution/playjson/circe/CirceToPlayConversionsSpec.scala) and [PlayToCirceConversionsSpec](play-json-circe/src/test/scala/com/evolution/playjson/circe/PlayToCirceConversionsSpec.scala).
All modules are available for Scala 2.12, 2.13 and 3, except for `play-json-generic`, which has no Scala 3 version yet.
## Setup
```scala
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")
libraryDependencies += "com.evolution" %% "play-json-tools" % "1.0.0"
libraryDependencies += "com.evolution" %% "play-json-generic" % "1.0.0"
libraryDependencies += "com.evolution" %% "play-json-jsoniter" % "1.0.0"
```