Portability | portable |
---|---|
Stability | experimental |
Maintainer | Bryan O'Sullivan <bos@serpentine.com> |
Safe Haskell | Safe-Infered |
Data.Aeson.Types.Internal
Description
Types for working with JSON data.
- data Value
- type Array = Vector Value
- emptyArray :: Value
- isEmptyArray :: Value -> Bool
- type Pair = (Text, Value)
- type Object = HashMap Text Value
- emptyObject :: Value
- data Parser a
- data Result a
- parse :: (a -> Parser b) -> a -> Result b
- parseEither :: (a -> Parser b) -> a -> Either String b
- parseMaybe :: (a -> Parser b) -> a -> Maybe b
- object :: [Pair] -> Value
Core JSON types
A JSON value represented as a Haskell value.
The empty array.
isEmptyArray :: Value -> BoolSource
Determines if the Value
is an empty Array
.
Note that: isEmptyArray
.
emptyArray
The empty object.
Type conversion
A continuation-based parser type.
The result of running a Parser
.
parseEither :: (a -> Parser b) -> a -> Either String bSource