Types

trait Types
class Object
trait Matchable
class Any
object JsonScalaz

Type members

Classlikes

sealed abstract
class Error extends Product with Serializable
case
object Fail
trait JSON[A] extends JSONR[A] with JSONW[A]
trait JSONR[A]
trait JSONW[A]
case
class NoSuchFieldError(name: String, json: JValue) extends Error
case
class UncategorizedError(key: String, desc: String, args: List[Any]) extends Error
case
class UnexpectedJSONError(was: JValue, expected: Class[_ <: JValue]) extends Error

Types

type EitherNel[a] = NonEmptyList[Error] \/ a
type Result[A] = ValidationNel[Error, A]

Value members

Concrete methods

def field[A : JSONR](name: String)(json: JValue): Result[A]
def fromJSON[A : JSONR](json: JValue): Result[A]
def makeObj(fields: Iterable[(String, JValue)]): JObject
def toJSON[A : JSONW](value: A): JValue
def validate[A : JSONR](name: String): Kleisli[EitherNel, JValue, A]

Implicits

Implicits

implicit
val JValueEqual: Equal[JValue]
implicit
val JValueMonoid: Monoid[JValue]
implicit
def Result2JSONR[A](f: JValue => Result[A]): JSONR[A]
implicit
def function2EitherNel[A](f: A => Result[A]): A => EitherNel[A]
implicit
def kleisli2Result[A](v: Kleisli[EitherNel, JValue, A]): JValue => Result[A]