Issue
For the data layer, I noticed that you are using Codable and parse JSON API formatted responses manually instead of using a 3rd-party library for handling this task. Why do you think parsing manually like this would be a better choice? And do you think using a JSON API parser library would add more benefits?
|
struct SurveyResponse: Codable { |
|
var id: String? |
|
var type: String? |
|
var attributes: Survey? |
|
} |
Just In case you don't know what JSON API format is and why we recommend to use it, please feel free to take a look at this for more information 🙏.
Issue
For the data layer, I noticed that you are using
Codableand parse JSON API formatted responses manually instead of using a 3rd-party library for handling this task. Why do you think parsing manually like this would be a better choice? And do you think using a JSON API parser library would add more benefits?survey/Survey/Models/SurveyResponse.swift
Lines 10 to 14 in 651e93f
Just In case you don't know what JSON API format is and why we recommend to use it, please feel free to take a look at this for more information 🙏.