Data.Aeson

How to use this library

Writing instances by hand

Working with the AST

Decoding to a Haskell value

Decoding a mixed-type object

Encoding and decoding

Direct encoding

decode

decode'

eitherDecode

eitherDecode'

encode

Variants for strict bytestrings

decodeStrict

decodeStrict'

eitherDecodeStrict

eitherDecodeStrict'

Core JSON types

data Value

type Encoding

fromEncoding

type Array

type Object

Convenience types

data DotNetTime

Type conversion

class FromJSON a

data Result a

fromJSON

class ToJSON a

class KeyValue kv

Keys for maps

class ToJSONKey a

data ToJSONKeyFunction a

class FromJSONKey a

data FromJSONKeyFunction a

Liftings to unary and binary type constructors

class FromJSON1 f

parseJSON1

class FromJSON2 f

parseJSON2

class ToJSON1 f

toJSON1

toEncoding1

class ToJSON2 f

toJSON2

toEncoding2

Generic JSON classes and options

class GFromJSON arity f

data FromArgs arity a

type GToJSON

type GToEncoding

data ToArgs res arity a

data Zero

data One

genericToJSON

genericLiftToJSON

genericToEncoding

genericLiftToEncoding

genericParseJSON

genericLiftParseJSON

Generic and TH encoding configuration

data Options

defaultOptions

Options fields

fieldLabelModifier

constructorTagModifier

allNullaryToStringTag

omitNothingFields

sumEncoding

unwrapUnaryRecords

tagSingleConstructors

Options utilities

data SumEncoding

camelTo2

defaultTaggedObject

Inspecting Values

withObject

withText

withArray

withNumber

withScientific

withBool

withEmbeddedJSON

Constructors and accessors

data Series

pairs

foldable

(.:)

(.:?)

(.:!)

(.!=)

object

Parsing

json

json'