Efficiently deserialize a JSON value from a lazy L.ByteString.
If this fails due to incomplete or invalid input, Nothing is
returned.
Moduleaeson-2.3.2.0Haskell2010
Data.Aeson.Decoding
Conversion to and from aeson Value.
Synopsis
- value decode
- value eitherDecode
- value throwDecode
- value decodeStrict
- value eitherDecodeStrict
- value throwDecodeStrict
- value decodeStrictText
- value eitherDecodeStrictText
- value throwDecodeStrictText
- value toEitherValue
- value unescapeText
- Packageaeson-2.3.2.0
- Exports11
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceDecoding.hs
Like decode but returns an error message when decoding fails.
Like decode but throws an AesonException when decoding fails.
throwDecode is in aeson since 2.1.2.0, but this variant is added later.
Efficiently deserialize a JSON value from a strict B.ByteString.
If this fails due to incomplete or invalid input, Nothing is
returned.
Like decodeStrict but returns an error message when decoding fails.
Like decodeStrict but throws an AesonException when decoding fails.
Like decodeStrictText but returns an error message when decoding fails.
Like decodeStrictText but throws an AesonException when decoding fails.
toEitherValue Unescape JSON text literal.
This function is exported mostly for testing and benchmarking purposes.