json4s-scalaz
json4s-scalaz
org.json4s.jackson.scalaz
org.json4s.native.scalaz
org.json4s.scalaz
Base
JsonScalaz
Lifting
Func1ToJSON
Func2ToJSON
Func3ToJSON
Func4ToJSON
Func5ToJSON
Func6ToJSON
Func7ToJSON
Func8ToJSON
Tuples
Types
Error
Fail
JSON
JSONR
JSONW
NoSuchFieldError
UncategorizedError
UnexpectedJSONError
json4s-scalaz
/
org.json4s.scalaz
/
Types
Types
trait
Types
Graph
Supertypes
Known subtypes
class
Object
trait
Matchable
class
Any
object
JsonScalaz
Type members
Value members
Implicits
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]