{"version":"1.0","type":"rich","title":"Gist dd282dd3104915ca1d7bbe96b2294fe1","description":"This example demonstrates a Swift decoding strategy for a trending GIFs API response, using a custom `Trending` initializer that iterates through a nested unkeyed container to parse each `Gif` object. It shows how to skip malformed entries by attempting to decode each item as `Gif` first, and falling back to `AnyCodable` to log and discard problematic records while preserving the valid ones. The code relies on `Decoder`, `KeyedDecodingContainer`, and `UnkeyedDecodingContainer` APIs to filter the data array, ensuring the resulting `data` property contains only successfully decoded GIFs.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-dd282dd3104915ca1d7bbe96b2294fe1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}