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

Text.JSON.JSONPrepend

Description

Prepending values to existing JSON association values.

Synopsis

Documentation

class JSONPrepend j s | j -> s whereSource

Prepending values to existing JSON association values.

Methods

(->:)Source

Arguments

:: (s, j)

The value to prepend if the JSON value is an object.

-> j

The JSON value to prepend to.

-> j 

Prepends the given association if the JSON is an object.

(-->>:)Source

Arguments

:: j

The value to prepend if the JSON value is an array..

-> j

The JSON value to prepend to.

-> j 

Prepends the given value if the JSON is an array.