aeson v0.8.1.0 Release Notes
-
Encoding a
Scientific
value with a huge exponent is now handled efficiently. (This would previously allocate a huge arbitrary-precision integer, potentially leading to a denial of service.)Handling of strings that contain backslash escape sequences is greatly improved. For a pathological string containing almost a megabyte of consecutive backslashes, the new implementation is 27x faster and uses 42x less memory.
The
ToJSON
instance forUTCTime
is rendered with higher (picosecond) resolution.๐ The
value
parser now correctly handles leading whitespace.๐ New instances of
ToJSON
andFromJSON
forData.Sequence
andData.Functor.Identity
. TheValue
type now has aRead
instance.๐
ZonedTime
parser ordering now favours the standardJSON
format, increasing efficiency in the common case.๐ Encoding to a
Text.Builder
now escapes'<'
and'>'
characters, to reduce XSS risk.