This repository has been archived by the owner on Feb 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
Array Decoding Semantics #189
Labels
Milestone
Comments
suggested changes have been merged into because this represents an API change, this won't come out until |
Changes made seem to cover only one of the many array decoding functions. |
ah! i only covered |
updated. you can point toward |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The current default behavior of the decoder when decoding arrays is to return an empty array even if it couldn't decode individual elements. The only requirement there is that the key must exist.
Updating these functions to return nil instead would make them more consistent with how the rest of the decoder functions behave. Caller gets a value back if the JSON can be decoded and nil otherwise.
The text was updated successfully, but these errors were encountered: