Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- withJSON :: ToJSON a => a -> Value -> Value
- withValue :: ToJSON a => Text -> a -> Value -> Value
- withStringField :: Text -> Text -> Value -> Value
- withArrayField :: ToJSON a => Text -> [a] -> Value -> Value
- withObjectField :: Text -> Object -> Value -> Value
- withNumberField :: Text -> Scientific -> Value -> Value
- withBoolField :: Text -> Bool -> Value -> Value
- withNullField :: Text -> Value -> Value
- view' :: ToJSON a => Getting c Value c -> a -> c
- toListOf' :: ToJSON a1 => Getting (Endo [a2]) Value a2 -> a1 -> [a2]
Documentation
withArrayField :: ToJSON a => Text -> [a] -> Value -> Value Source #
Add an Array field to a JSON value.
withNumberField :: Text -> Scientific -> Value -> Value Source #
Add an Number field to a JSON value.