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](name: String)(json: JValue)(implicit evidence$3: JSONR[A]): Result[A]
def fromJSON[A](json: JValue)(implicit evidence$1: JSONR[A]): Result[A]
def makeObj(fields: Iterable[(String, JValue)]): JObject
def toJSON[A](value: A)(implicit evidence$2: JSONW[A]): JValue
def validate[A](name: String)(implicit evidence$4: JSONR[A]): 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]