JsonFieldDecoder

zio.json.JsonFieldDecoder
See theJsonFieldDecoder companion object
trait JsonFieldDecoder[+A]

When decoding a JSON Object, we only allow the keys that implement this interface.

Attributes

Companion
object
Source
JsonFieldDecoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def unsafeDecodeField(trace: List[JsonError], in: String): A

Attributes

Source
JsonFieldDecoder.scala

Concrete methods

final def map[B](f: A => B): JsonFieldDecoder[B]

Attributes

Source
JsonFieldDecoder.scala
final def mapOrFail[B](f: A => Either[String, B]): JsonFieldDecoder[B]

Attributes

Source
JsonFieldDecoder.scala