Error at on string property while decoding the json data in Swift UI:
Fatal error: 'try!' expression unexpectedly raised an error:
Swift.DecodingError.valueNotFound(Swift.UnkeyedDecodingContainer,
Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue:intValue: nil)],
debugDescription: "Cannot get unkeyed decoding container
-- found null value instead.", underlyingError: nil))
The solution is to replace the property declaration from this:
let yourStringProperty: String
to this
let yourStringProperty: String?
i.e make it optional and set to accept nil.