Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nice to Have: Parse Weather Data using Codable #28

Open
vuinguyen opened this issue Dec 21, 2019 · 0 comments
Open

Nice to Have: Parse Weather Data using Codable #28

vuinguyen opened this issue Dec 21, 2019 · 0 comments

Comments

@vuinguyen
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant