Module

Data.Argonaut.Types.Generic

Package
purescript-argonaut-generic
Repository
purescript-contrib/purescript-argonaut-generic

#Encoding Source

type Encoding = { tagKey :: String, unwrapSingleArguments :: Boolean, valuesKey :: String }

Encoding settings: tagKey -- which key to use in the JSON object for sum-type constructors valuesKey -- which key to use in the JSON object for sum-type values unwrapSingleArguments -- should single-arguments constructors' values be wrapped in an array

#defaultEncoding Source