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
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

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

Concrete methods

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