You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a JSONArray, where certain items can't be parsed, what's the best way to skip/filter only those elements, instead of failing to parse the whole JSONArray.
Example:
@JsonSerializable
class MyWrapperResponse(List<SomeType> object);
where parsing certain SomeTypes will fail, but the app would still like to show the other items.
Given a
JSONArray
, where certain items can't be parsed, what's the best way to skip/filter only those elements, instead of failing to parse the wholeJSONArray
.Example:
where parsing certain
SomeType
s will fail, but the app would still like to show the other items.Thinking of a custom converter:
which unfortunately doesn't work as these converters are only post processors 🤔
The text was updated successfully, but these errors were encountered: