Module
Data.Argonaut.Generic.Aeson
- Package
- purescript-argonaut-generic-codecs
- Repository
- eskimor/purescript-argonaut-generic-codecs
#encodeJson Source
encodeJson :: forall a. Generic a => a -> Json
Encode Json
representation of a value which has a Generic
type
with Aeson options. The encoded data will be compatible with Haskell Aeson,
if Aeson default options are used.
#decodeJson Source
decodeJson :: forall a. Generic a => Json -> Either String a
Decode Json
representation of a value which has a Generic
type
with Aeson options. Data from Haskell, with Aeson default options can be
decoded with gAesonDecodJson.
#userEncoding Source
userEncoding :: Options -> GenericSignature -> GenericSpine -> Maybe Json
#userDecoding Source
userDecoding :: Options -> GenericSignature -> Json -> Maybe (Either String GenericSpine)