org.mbari.vars.migration.etc.circe

Members list

Type members

Classlikes

class CirceBodyHandler[T] extends BodyHandler[Either[Throwable, T]]

A CirceBodyHandler is a HttpResponse.BodyHandler that uses Circe to decode the response body to an Either where the left side is a Throwable and the right side is the desired type T.

A CirceBodyHandler is a HttpResponse.BodyHandler that uses Circe to decode the response body to an Either where the left side is a Throwable and the right side is the desired type T.

Type parameters

T

The type to decode the response body to.

Attributes

Companion
object
Supertypes
trait BodyHandler[Either[Throwable, T]]
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object CirceCodecs

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

This object contains extension methods for working with JSON objects via circe

This object contains extension methods for working with JSON objects via circe

import org.mbari.piscivore.etc.circe.CirceCodecs.given
import org.mbari.piscivore.etc.circe.CirceExtensions.*

val json       = s"""{"count": 1, "video_reference_uuid": "123e4567-e89b-12d3-a456-426614174000"}"""
val count      = json.reify[CountSC] // From JSON
val jsonString = count.stringify     // To JSON

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type