Module

Data.Argonaut.Generic.Aeson

Package
purescript-argonaut-generic-codecs
Repository
eskimor/purescript-argonaut-generic-codecs

#options Source

options :: Options

Options for aeson compatible encoding/decoding.

#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.