An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

## PlayJson for AkkaHttp

[![Build Status](https://github.com/evolution-gaming/akka-http-play-json/workflows/CI/badge.svg)](https://github.com/evolution-gaming/akka-http-play-json/actions?query=workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/github/evolution-gaming/akka-http-play-json/badge.svg?branch=master)](https://coveralls.io/github/evolution-gaming/akka-http-play-json?branch=master)
[![Version](https://img.shields.io/badge/version-click-blue)](https://evolution.jfrog.io/artifactory/api/search/latestVersion?g=com.evolutiongaming&a=akka-http-play-json_2.13&repos=public)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/33d185f41cd04b10b651f4934bc90c1f)](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)
[![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](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._
```