This module defines a data type and various functions for creating and manipulating JSON values. The README contains additional documentation for this module.
fromString :: String -> Json
Json representation of a
Note that this function only produces
Json containing a single piece of
data (similar to
This function does NOT convert the
String encoding of a JSON value to
Json - For that
purpose, you'll need to use
stringifyWithIndent :: Int -> Json -> String
Json value to a JSON string.
Int argument specifies the amount of white space characters to use as indentation.
This number is capped at 10 (if it is greater, the value is just 10). Values less than 1 indicate that no space should be used.