pjfanning / pekko-http-json   3.0.0

Apache License 2.0 GitHub

Integrate some of the best JSON libs in Scala with Pekko HTTP

Scala versions: 3.x 2.13 2.12

pekko-http-json

License Maven Central

Releases are pushed to Maven Central. Snapshots are pushed to Sonatype. See below.

This is a fork of akka-http-json. Thanks to Heiko Seeberger and all those who contributed to akka-http-json.

pekko-http-json provides JSON (un)marshalling support for Apache Pekko HTTP via the following JSON libraries:

Installation

The artifacts are published to Maven Central.

libraryDependencies ++= Seq(
  "com.github.pjfanning" %% "pekko-http-circe" % PekkoHttpJsonVersion,
  ...
)

Snapshots

Check https://oss.sonatype.org/content/repositories/snapshots/com/github/pjfanning/ to find the version numbers for the latest pekko-http-json snapshots.

resolvers ++= Resolver.sonatypeOssRepos("snapshots")

Usage

Use respective support trait or object, e.g. ArgonautSupport, FailFastCirceSupport, etc. into your Pekko HTTP code which is supposed to (un)marshal from/to JSON. Don't forget to provide the type class instances for the respective JSON libraries, if needed.

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

License

This code is open source software licensed under the Apache 2.0 License.