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

Text.JSON.JSONField

Description

The base functions for accessing JSON object fields.

Synopsis

Documentation

class JSONField j f | j -> f whereSource

Accessing JSON object fields.

Methods

field :: Failure (NoSuchFieldOrExpectedObject f j) m => f -> j -> m jSource

Access the field of a JSON object with potential failure.

fields :: Failure (ExpectedObject j) m => j -> m [f]Source

Access all fields of a JSON object with potential failure.

values :: Failure (ExpectedObject j) m => j -> m [j]Source

Returns all object field values of a JSON value.