Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if let data = data{
- do {
- if let json = try JSONSerialization.jsonObject(with: data, options: []) as? [String:Any]{
- // if let dailyforecasts = json["infosGenerique"] as?[String:Any]{
- // if let dailyData = dailyforecasts["libelleGroupe"] as?[[String:Any]] {
- // for dataPoint in dailyData {
- if let MedicineObject = try? Medicine(json: json){
- queryArray.append(MedicineObject)
- // }
- // }
- // }
- }
- }
- }catch{
- print(error.localizedDescription)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement