akka-http-json
akka-http-json provides JSON (un)marshalling support for Akka HTTP via the following JSON libraries:
- Argonaut
- avro4s
- AVSystem GenCodec
- circe
- Jackson via Scala Module by default
- Json4s
- jsoniter-scala
- ninny
- Play JSON
- uPickle
- zio-json
Installation
The artifacts are published to Maven Central.
libraryDependencies ++= Seq(
"de.heikoseeberger" %% "akka-http-circe" % AkkaHttpJsonVersion,
...
)
Usage
Use respective support trait or object, e.g. ArgonautSupport
, FailFastCirceSupport
, etc. into your Akka 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.
YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler.