JSON
JSON copied to clipboard
Failure to decode array elements should propagate errors
👋 First of all - this is my goto JSON parsing library because it's so simple and concise. Thanks!
However I believe that the array decoding is not correct at the moment. If decoding of an element in the array fails this error should be propagated to the call site instead of just skipping that element. This would keep it more consistent with the rest of the library where for example failing to decode a nested object also throws an error.
Thoughts?