hstraub / akka-http-json

JSON support for Akka HTTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

akka-http-json

Join the chat at https://gitter.im/hseeberger/akka-http-json Build Status

akka-http-json provides JSON (un)marshalling support for Akka HTTP. Currently it supports Play JSON and spray-json.

Installation

akka-http-json depends on akka-http 1.0-M5.

Grab it while it's hot:

// All releases including intermediate ones are published here,
// final ones are also published to Maven Central.
resolvers += "hseeberger at bintray" at "http://dl.bintray.com/hseeberger/maven"

libraryDependencies ++= List(
  "de.heikoseeberger" %% "akka-http-json-play" % "0.4.0", // or akka-http-json-spray
  ...
)

Usage

Mix PlayJsonMarshalling or SprayJsonMarshalling into your Akka HTTP code which is supposed to (un)marshal from/to JSON. Don't forget to provide the necessary format type class instances for Play JSON or spray-json.

A complete demo using akka-http-json is Reactive Flows. Have fun, and please report any issues, suggestions, complaints.

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.

About

JSON support for Akka HTTP

License:Apache License 2.0


Languages

Language:Scala 100.0%