aeson-casing alternatives and similar packages
Based on the "aeson" category.
Alternatively, view aeson-casing alternatives based on common mentions on social networks and blogs.
-
aeson-schema
Haskell JSON schema validator and parser generator -
aeson-injector
Haskell library for injecting fields into aeson values -
aeson-smart
Better template haskell generation of parseJSON and toJSON methods -
aeson-flowtyped
Moved to https://gitlab.com/transportengineering/aeson-flowtyped -
aeson-applicative
define To/From JSON instances from one applicative definition -
aeson-value-parser
An API for parsing "aeson" JSON tree into Haskell types -
aeson-attoparsec
Embed an attoparsec parser into an aeson parser -
aeson-generic-compat
Compatible generic class names of Aeson
Collect and Analyze Billions of Data Points in Real Time
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of aeson-casing or a related project?
README
aeson-casing
Tools to change the formatting of field names in Aeson instances.
The casing utilities allow you to specify how Aeson renders and parses the field names in JSON messages. Snake, Camel, and Pascal case are all supported. To include casing modifiers in Aeson, attach options to instances of ToJSON and FromJSON.
data Person = Person
{ personFirstName :: Text
, personLastName :: Text
} deriving (Generic)
instance ToJSON Person where
toJSON = genericToJSON $ aesonPrefix snakeCase
instance FromJSON Person where
parseJSON = genericParseJSON $ aesonPrefix snakeCase
The above code will produce JSON messages like the following...
{
"first_name": "John",
"last_name": "Doe"
}