Provides a datatype representing data in JavaScript Object Notation as well as traversal, read and show functions for that datatype.
See http://www.crockford.com/JSON/ for further information.
Author: Sebastian Fischer
trJson
:: ([(String,a)] -> a) -> ([a] -> a) -> (String -> a) -> (Int -> a) -> (Bool -> a) -> a -> Json -> a
Universal transformation for JSON values. |
showJson
:: Json -> String
Transforms a JSON value into its String representation. |
readJson
:: String -> Json
Parses a JSON value from its string representation. |
Constructors:
Object
:: [(String,Json)] -> Json
Array
:: [Json] -> Json
String
:: String -> Json
Int
:: Int -> Json
Bool
:: Bool -> Json
Null
:: Json