From 62a43d27bb325f448b351e369ba3e5acc786eb90 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Tue, 21 Jul 2015 14:08:14 +0200 Subject: [PATCH] =doc #16812 link community extension to HTTP for other (JSON) marshallers --- .../rst/java/http/routing-dsl/index.rst | 2 +- ...on-jackson-support.rst => json-support.rst} | 18 +++++++++++++++--- .../rst/scala/http/common/json-support.rst | 6 +++++- 3 files changed, 21 insertions(+), 5 deletions(-) rename akka-docs-dev/rst/java/http/routing-dsl/{json-jackson-support.rst => json-support.rst} (59%) diff --git a/akka-docs-dev/rst/java/http/routing-dsl/index.rst b/akka-docs-dev/rst/java/http/routing-dsl/index.rst index 430cf5469e..311915951b 100644 --- a/akka-docs-dev/rst/java/http/routing-dsl/index.rst +++ b/akka-docs-dev/rst/java/http/routing-dsl/index.rst @@ -15,4 +15,4 @@ To use the high-level API you need to add a dependency to the ``akka-http-experi handlers marshalling testkit - json-jackson-support \ No newline at end of file + json-support \ No newline at end of file diff --git a/akka-docs-dev/rst/java/http/routing-dsl/json-jackson-support.rst b/akka-docs-dev/rst/java/http/routing-dsl/json-support.rst similarity index 59% rename from akka-docs-dev/rst/java/http/routing-dsl/json-jackson-support.rst rename to akka-docs-dev/rst/java/http/routing-dsl/json-support.rst index 13bde7fb36..6052d3d58f 100644 --- a/akka-docs-dev/rst/java/http/routing-dsl/json-jackson-support.rst +++ b/akka-docs-dev/rst/java/http/routing-dsl/json-support.rst @@ -1,10 +1,22 @@ +.. _json-support-java: + +Json Support +============ + +akka-http provides support to convert application-domain objects from and to JSON using jackson_ in an +extra artifact. + +Integration with other JSON libraries may be supported by the community. +See `the list of current community extensions for Akka HTTP`_. + +.. _`the list of current community extensions for Akka HTTP`: http://akka.io/community/#extensions-to-akka-http + .. _json-jackson-support-java: Json Support via Jackson -======================== +------------------------ -akka-http provides support to convert application-domain objects from and to JSON using jackson_. To make use -of the support module, you need to add a dependency on `akka-http-jackson-experimental`. +To make use of the support module, you need to add a dependency on `akka-http-jackson-experimental`. Use ``akka.http.javadsl.marshallers.jackson.Jackson.jsonAs[T]`` to create a ``RequestVal`` which expects the request body to be of type ``application/json`` and converts it to ``T`` using Jackson. diff --git a/akka-docs-dev/rst/scala/http/common/json-support.rst b/akka-docs-dev/rst/scala/http/common/json-support.rst index cdfc292333..697005c0f3 100644 --- a/akka-docs-dev/rst/scala/http/common/json-support.rst +++ b/akka-docs-dev/rst/scala/http/common/json-support.rst @@ -8,6 +8,10 @@ XML or even binary encodings. For JSON Akka HTTP currently provides support for `spray-json`_ right out of the box through it's ``akka-http-spray-json`` module. +Other JSON libraries are supported by the community. +See `the list of current community extensions for Akka HTTP`_. + +.. _`the list of current community extensions for Akka HTTP`: http://akka.io/community/#extensions-to-akka-http spray-json Support ------------------ @@ -29,4 +33,4 @@ Once you have done this (un)marshalling between JSON and your type ``T`` should .. _spray-json: https://github.com/spray/spray-json -.. _SprayJsonSupport: @github@/akka-http-marshallers-scala/akka-http-spray-json/src/main/scala/akka/http/scaladsl/marshallers/sprayjson/SprayJsonSupport.scala \ No newline at end of file +.. _SprayJsonSupport: @github@/akka-http-marshallers-scala/akka-http-spray-json/src/main/scala/akka/http/scaladsl/marshallers/sprayjson/SprayJsonSupport.scala