JSON icon indicating copy to clipboard operation
JSON copied to clipboard

Failure to decode array elements should propagate errors

Open lipka opened this issue 8 years ago • 0 comments

👋 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?

lipka avatar Apr 11 '17 12:04 lipka