diff options
author | adamw <adam@warski.org> | 2017-10-18 14:20:26 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-10-18 14:20:26 +0200 |
commit | 21c4700bbe8cf37d7b9feacc5afdf64357604d8f (patch) | |
tree | 50cd74646955bae495296b1d9a212ac412a75b7c /docs/json.rst | |
parent | 6e109a964383bfe5e2be04f65fa7cc1356a97cbe (diff) | |
download | sttp-21c4700bbe8cf37d7b9feacc5afdf64357604d8f.tar.gz sttp-21c4700bbe8cf37d7b9feacc5afdf64357604d8f.tar.bz2 sttp-21c4700bbe8cf37d7b9feacc5afdf64357604d8f.zip |
More docs
Diffstat (limited to 'docs/json.rst')
-rw-r--r-- | docs/json.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/json.rst b/docs/json.rst index 086fa60..032c120 100644 --- a/docs/json.rst +++ b/docs/json.rst @@ -3,14 +3,16 @@ JSON ==== -JSON encoding of bodies and decoding of responses can be handled using -`Circe <https://circe.github.io/circe/>`_ by the ``circe`` module. To use -add the following dependency to your project:: +Adding support for JSON (or other format) bodies in requests/responses is a matter of providing a :ref:`body serializer <requestbody_custom>` and/or a :ref:`response body specification <responsebodyspec_custom>`. Both are quite straightforward to implement, so integrating with your favorite JSON library shouldn't be a problem. However, there are some integrations available out-of-the-box. + +Circe +----- + +JSON encoding of bodies and decoding of responses can be handled using `Circe <https://circe.github.io/circe/>`_ by the ``circe`` module. To use add the following dependency to your project:: "com.softwaremill.sttp" %% "circe" % "0.0.20" -This module adds a method to the request and a function that can be given to -a request to decode the response to a specific object:: +This module adds a method to the request and a function that can be given to a request to decode the response to a specific object:: import com.softwaremill.sttp._ import com.softwaremill.sttp.circe._ |