hjson-1.2: JSON parsing library

Text.HJson

Synopsis

Documentation

class Jsonable a whereSource

Class of types that can be converted to or from JSON

Methods

toJson :: a -> JsonSource

fromJson :: Json -> Maybe aSource

fromString :: String -> Either String JsonSource

Parses JSON string

toString :: Json -> StringSource

Renders JSON to String

escapeJString :: String -> StringSource

Escapes string for inclusion in JSON