Skip to main content

Choosing JSON deserialisation module

JSON deserialisation has been decoupled from the core modules. There are now a couple of options to choose from:

circe#

To use circe implementation add the following module to your dependencies:

"com.ocadotechnology" %% "sttp-oauth2-circe" % "0.17.0"

Then import appropriate set of implicit instances:

import com.ocadotechnology.sttp.oauth2.json.circe.instances._

jsoniter-scala#

To use jsoniter-scala implementation add the following module to your dependencies:

"com.ocadotechnology" %% "sttp-oauth2-jsoniter" % "0.17.0"

Then import appropriate set of implicit instances:

import com.ocadotechnology.sttp.oauth2.json.jsoniter.instances._