Json

oxygen.http.core.BodyCodec.Json
See theJson companion object
trait Json[A] extends Text[A]

Attributes

Companion
object
Graph
Supertypes
trait Text[A]
trait BodyCodec[A]
class Object
trait Matchable
class Any
Known subtypes
class Required[A]
class Transform[A, B]
class TransformOrFail[A, B]

Members list

Value members

Concrete methods

final override def transform[B](ab: A => B, ba: B => A): Json[B]

Attributes

Definition Classes
final override def transformOrFail[B](ab: A => Either[String, B], ba: B => A): Json[B]

Attributes

Definition Classes

Inherited methods

final override def decode(body: HttpBody): ZIO[Scope, Cause, A]

Attributes

Definition Classes
Inherited from:
Text
final override def encode(value: A): HttpBody

Attributes

Definition Classes
Inherited from:
Text

Inherited and Abstract methods

def decodeText(body: Text): Either[Cause, A]

Attributes

Inherited from:
Text
def encodeText(value: A): Text

Attributes

Inherited from:
Text