Module

Data.Argonaut.Generic.Argonaut

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

Straight forward encoding/decoding with no special rules.

#options Source

options :: Options

Default for straight forward argonaut encoding.

#encodeJson Source

encodeJson :: forall a. Generic a => a -> Json

Encode any Generic data structure into Json, formatted according to argonautOptions

#decodeJson Source

decodeJson :: forall a. Generic a => Json -> Either String a

Decode Json representation of a value which has a Generic type with Argonaut options.