Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. if let data = data{
  2. do {
  3. if let json = try JSONSerialization.jsonObject(with: data, options: []) as? [String:Any]{
  4. // if let dailyforecasts = json["infosGenerique"] as?[String:Any]{
  5. // if let dailyData = dailyforecasts["libelleGroupe"] as?[[String:Any]] {
  6. // for dataPoint in dailyData {
  7. if let MedicineObject = try? Medicine(json: json){
  8. queryArray.append(MedicineObject)
  9. // }
  10. // }
  11. // }
  12. }
  13. }
  14. }catch{
  15. print(error.localizedDescription)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement