trait ZioJsonSupport extends AnyRef
JSON marshalling/unmarshalling using zio-json codec implicits.
The marshaller writes A to JSON HTTPEntity.
The unmarshaller follows zio-json's early exit strategy, attempting to reading JSON to an A.
A safe unmarshaller is provided to attempt reading JSON to an Either[String, A] instead.
No intermediate JSON representation as per zio-json's design.
- Alphabetic
- By Inheritance
- ZioJsonSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type SourceOf[A] = Source[A, _]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit final def fromByteStringUnmarshaller[A](implicit jd: JsonDecoder[A]): Unmarshaller[ByteString, A]
ByteString=>AByteString=>A- A
type to decode
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit final def marshaller[A](implicit arg0: JsonEncoder[A]): ToEntityMarshaller[A]
A=> HTTP entityA=> HTTP entity- A
type to encode
- returns
marshaller for any
Avalue
- def mediaTypes: Seq[WithFixedCharset]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit final def safeUnmarshaller[A](implicit arg0: JsonDecoder[A]): FromEntityUnmarshaller[Either[String, A]]
- implicit final def sourceMarshaller[A](implicit writes: JsonEncoder[A], support: JsonEntityStreamingSupport = EntityStreamingSupport.json()): ToEntityMarshaller[SourceOf[A]]
SourceOf[A]=> HTTP entitySourceOf[A]=> HTTP entity- A
type to encode
- returns
marshaller for any
SourceOf[A]value
- implicit final def sourceUnmarshaller[A](implicit arg0: JsonDecoder[A], support: JsonEntityStreamingSupport = EntityStreamingSupport.json()): FromEntityUnmarshaller[SourceOf[A]]
HTTP entity =>
Source[A, _]HTTP entity =>
Source[A, _]- A
type to decode
- returns
unmarshaller from
Source[A, _]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit final def unmarshaller[A](implicit arg0: JsonDecoder[A]): FromEntityUnmarshaller[A]
HTTPEntity =>
AHTTPEntity =>
A- A
type to decode
- returns
unmarshaller for
A
- def unmarshallerContentTypes: Seq[ContentTypeRange]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()