|
Text.JSON.Generic | Portability | portable | Stability | provisional | Maintainer | Sigbjorn Finne <sof@galois.com> |
|
|
|
Description |
JSON serializer and deserializer using Data.Generics.
The functions here handle algebraic data types and primitive types.
It uses the same representation as Text.JSON for Prelude types.
|
|
Synopsis |
|
module Text.JSON | | Data (gfoldl, gunfold, toConstr, dataTypeOf, dataCast1, dataCast2, gmapT, gmapQl, gmapQr, gmapQ, gmapQi, gmapM, gmapMp, gmapMo) | | Typeable (typeOf) | | toJSON :: Data a => a -> JSValue | | fromJSON :: Data a => JSValue -> Result a | | encodeJSON :: Data a => a -> String | | decodeJSON :: Data a => String -> a | | toJSON_generic :: Data a => a -> JSValue | | fromJSON_generic :: Data a => JSValue -> Result a |
|
|
Documentation |
|
module Text.JSON |
|
Data (gfoldl, gunfold, toConstr, dataTypeOf, dataCast1, dataCast2, gmapT, gmapQl, gmapQr, gmapQ, gmapQi, gmapM, gmapMp, gmapMo) |
|
Typeable (typeOf) |
|
|
Convert anything to a JSON value.
|
|
|
Convert a JSON value to anything (fails if the types do not match).
|
|
|
Encode a value as a string.
|
|
|
Decode a string as a value.
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |