|
Text.JSON.Types | Portability | portable | Stability | provisional | Maintainer | Sigbjorn Finne <sof@galois.com> |
|
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
JSON Types
|
|
|
JSON values
The type to which we encode Haskell values. There's a set
of primitives, and a couple of heterogenous collection types.
Objects:
An object structure is represented as a pair of curly brackets
surrounding zero or more name/value pairs (or members). A name is a
string. A single colon comes after each name, separating the name
from the value. A single comma separates a value from a
following name.
Arrays:
An array structure is represented as square brackets surrounding
zero or more values (or elements). Elements are separated by commas.
Only valid JSON can be constructed this way
| Constructors | |
|
|
Wrapper Types
|
|
|
Strings can be represented a little more efficiently in JSON
| Constructors | |
|
|
|
Turn a Haskell string into a JSON string.
|
|
|
As can association lists
| Constructors | |
|
|
|
Make JSON object out of an association list.
|
|
|
Get the value of a field, if it exist.
|
|
|
Set the value of a field. Previous values are overwritten.
|
|
Produced by Haddock version 2.6.0 |