I've parsed a JSON from YouTube and not every item in the array necessarily have certain Key:Value pairs, thus I get a fatal error. My only solution has been to comment out certain key:values from my Model. However I'd like a more appropriate solution but I'm not sure the right way to dynamically guard for missing key:values.
有谁能帮我在swiftui中实现这一点的方法吗.