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.
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.