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:

"org.polyvariant" %% "sttp-oauth2-circe" % "0.19.2"

Then import appropriate set of implicit instances:

import org.polyvariant.sttp.oauth2.json.circe.instances._

jsoniter-scala#

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

"org.polyvariant" %% "sttp-oauth2-jsoniter" % "0.19.2"

Then import appropriate set of implicit instances:

import org.polyvariant.sttp.oauth2.json.jsoniter.instances._