|
| Moltap.Util.SimpleJSON | | Portability | portable | | Stability | experimental | | Maintainer | twanvl@gmail.com |
|
|
|
| Description |
| A very simple output library for JSON (JavaScript Object Notation).
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data JSON |
JSON data.
The data can be converted to actual JSON notation using show.
| | Constructors | | Instances | |
|
|
| data JSONKeyVal |
| A JSON key/value pair, a list of these forms an object.
| Instances | |
|
|
| (=:) :: ToJSON a => String -> a -> JSONKeyVal |
Create a key/value pair for in a JSONObject.
Objects can be constructed using
["x" =: value1, "y" =: value2]
Which converts to
{x: value1, y: value2}
|
|
| class ToJSON a where |
| Things that can be converted to JSON
| | | Methods | | toJSON :: a -> JSON | | Convert a value to JSON
| | | toJSONList :: [a] -> JSON | | Convert a list to JSON
|
| | Instances | |
|
|
| Produced by Haddock version 0.8 |