| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Json.Lenient
Description
Optional advisory fields share lenient Aeson decoding across ecosystems.
Documentation
lenientOptional :: (FromJSON a, NFData a) => Object -> Key -> Parser (Maybe a) Source #
Decode an optional field leniently: absent, null, and undecodable yield Nothing, so
one poisoned value cannot deny the document. For advisory fields only, never a load-bearing one.