We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
code is
if let arr = json["timetable"].array { for (index:String,subJson:JSON) in arr { timetable.append(SectionTime(subJson)) } }
error is:
swiftyjson 'JSON' is not convertible to '(String, JSON)'
in line for (index:String,subJson:JSON) in arr
for (index:String,subJson:JSON) in arr
The text was updated successfully, but these errors were encountered:
Replace your cod to:
for ((index:String,subJson:JSON) in json["timetable"] ) { timetable.append(SectionTime(subJson)) }
In your code the arr is Array not JSON
arr
Array
JSON
Sorry, something went wrong.
No branches or pull requests
code is
error is:
in line
for (index:String,subJson:JSON) in arr
The text was updated successfully, but these errors were encountered: