JSON-Combinator-0.2.7: A combinator library on top of a generalised JSON type

Text.JSON.Failure

Description

Data structures that used to denote failure of accessing JSON values.

Synopsis

Documentation

data NoSuchField z Source

An object field was attempted to access but the object has no such field.

Constructors

NoSuchField z 

Instances

data ExpectedObject j Source

The JSON value was expected to be an object but it wasn't.

Constructors

ExpectedObject j 

data ExpectedBool j Source

The JSON value was expected to be a boolean but it wasn't.

Constructors

ExpectedBool j 

Instances

data ExpectedNumber j Source

The JSON value was expected to be a number but it wasn't.

Constructors

ExpectedNumber j 

data ExpectedString j Source

The JSON value was expected to be a string but it wasn't.

Constructors

ExpectedString j 

data ExpectedArray j Source

The JSON value was expected to be an array but it wasn't.

Constructors

ExpectedArray j 

data NoSuchFieldOrExpectedObject z j Source

An object field was attempted to access but the object has no such field or the JSON value was expected to be an object but it wasn't.