| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Aeson.Ext
Contents
Description
Orphan instances and shared JSON options.Generic
Documentation
bsAesonOptions :: String -> Options Source #
Our custom Aeson Options
Omits fields, and drops/lowers accordingly:Nothing
>>>fieldLabelModifier (bsAesonOptions "bs") "bsReleaseStage""releaseStage"
For sums, the first argument is taken as a suffix:
>>>constructorTagModifier (bsAesonOptions "ReasonType") "UnhandledExceptionReasonType""unhandledException"
Orphan instances
| ToJSON ByteString Source # | |
Methods toJSON :: ByteString -> Value # toEncoding :: ByteString -> Encoding # toJSONList :: [ByteString] -> Value # toEncodingList :: [ByteString] -> Encoding # | |