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
May need to implement a custom init(from decoder: Decoder) throws function, because the JSON structure is very tricky / nested, and lots of opportunities for the parsing to go wrong! Also we'll have to convert some Date/Time Strings to Date objects. This is just way too complicated when all we want are a couple pieces of data from the WeatherBit.io API call. So for now, we're using JSON Serialization to parse the data. But as a "nice to have", maybe we can get JSON parsing to happen with Codable in the future.
The text was updated successfully, but these errors were encountered:
May need to implement a custom init(from decoder: Decoder) throws function, because the JSON structure is very tricky / nested, and lots of opportunities for the parsing to go wrong! Also we'll have to convert some Date/Time Strings to Date objects. This is just way too complicated when all we want are a couple pieces of data from the WeatherBit.io API call. So for now, we're using JSON Serialization to parse the data. But as a "nice to have", maybe we can get JSON parsing to happen with Codable in the future.
The text was updated successfully, but these errors were encountered: