aeson-with-0.1.0.1: withXField combinators for aeson

Safe HaskellNone
LanguageHaskell2010

Data.Aeson.With

Synopsis

Documentation

withJSON :: ToJSON a => a -> Value -> Value Source #

Union two JSON values together.

withValue :: ToJSON a => Text -> a -> Value -> Value Source #

Add an Value field to a JSON value.

withStringField :: Text -> Text -> Value -> Value Source #

Add a String field to a JSON value.

withArrayField :: ToJSON a => Text -> [a] -> Value -> Value Source #

Add an Array field to a JSON value.

withObjectField :: Text -> Object -> Value -> Value Source #

Add an Object field to a JSON value.

withNumberField :: Text -> Scientific -> Value -> Value Source #

Add an Number field to a JSON value.

withBoolField :: Text -> Bool -> Value -> Value Source #

Add a Bool field to a JSON value.

withNullField :: Text -> Value -> Value Source #

Add Null field to a JSON value.