https://github.com/evolution-gaming/akka-http-play-json
PlayJson integration for AkkaHttp
https://github.com/evolution-gaming/akka-http-play-json
Last synced: 5 months ago
JSON representation
PlayJson integration for AkkaHttp
- Host: GitHub
- URL: https://github.com/evolution-gaming/akka-http-play-json
- Owner: evolution-gaming
- License: other
- Created: 2016-12-29T12:37:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T13:55:10.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T06:51:17.722Z (over 1 year ago)
- Language: Scala
- Size: 69.3 KB
- Stars: 1
- Watchers: 10
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PlayJson for AkkaHttp
[](https://github.com/evolution-gaming/akka-http-play-json/actions?query=workflow%3ACI)
[](https://coveralls.io/github/evolution-gaming/akka-http-play-json?branch=master)
[](https://evolution.jfrog.io/artifactory/api/search/latestVersion?g=com.evolutiongaming&a=akka-http-play-json_2.13&repos=public)
[](https://www.codacy.com/gh/evolution-gaming/akka-http-play-json/dashboard?utm_source=github.com&utm_medium=referral&utm_content=evolution-gaming/akka-http-play-json&utm_campaign=Badge_Grade)
[](https://opensource.org/licenses/Apache-2.0)
This project contains implicit marshaller and unmarshaller to enable simple endpoint and consumer development.
## Setup
```scala
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")
libraryDependencies += "com.evolutiongaming" %% "akka-http-play-json" % "0.2.0"
```
## Usage
```scala
import akka.http.scaladsl.marshallers.playjson.PlayJsonSupport._
```
## Pekko support
The project supports the Pekko version via the adapter layer: https://github.com/evolution-gaming/akka-to-pekko-adapter. If you want to use it, replacing the dependency should suffice.
```scala
libraryDependencies += "com.evolutiongaming" %% "pekko-http-play-json" % "0.2.0"
```
Optionally you can rename the import to a Pekko version package:
```scala
import org.apache.pekko.http.scaladsl.marshallers.playjson.PlayJsonSupport._
```