=doc #16812 link community extension to HTTP for other (JSON) marshallers
This commit is contained in:
parent
4aca56b034
commit
62a43d27bb
3 changed files with 21 additions and 5 deletions
|
|
@ -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
|
||||
json-support
|
||||
|
|
@ -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<T>`` which expects the request
|
||||
body to be of type ``application/json`` and converts it to ``T`` using Jackson.
|
||||
|
|
@ -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
|
||||
.. _SprayJsonSupport: @github@/akka-http-marshallers-scala/akka-http-spray-json/src/main/scala/akka/http/scaladsl/marshallers/sprayjson/SprayJsonSupport.scala
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue