haskell / haskell/aeson

Warn on unknown fields, without failing

Open
#808 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1.3k
Forks
336
Avg merge
3d 7h
Merged PRs (30d)
4

Description

The presence of unrecognised fields seems like something one might want to be aware of, while still obtaining the parse result. #749 only makes it possible to halt completely.

Admittedly, I'm not sure where this would fit within Aeson's current API. I guess we'd need something like `eitherDecodeWarnings :: FromJSON a => ByteString -> Either String ([Warning], a)`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.