title: how to parse pagination url using alamofire and swiftyjson in swift?
body: <p>I have a json url that supports pagination. 
  My question is how can i parse this paginations page with using alamofire and swiftyjson ? </p>
  
  <p>my json url like : </p>
  
  <pre><code>{  
     "meta":{  
        "code":200
     },
     "data":{  },
     "pagination":{  
        "total":86,
        "totalPages":3,
        "page":1,
        "nextPage":2,
        "nextPageUrl":"http://.............?page=2"
     }
  }
  </code></pre>
  
  <p>** !!!!!!! UPDATE !!!!!!!**</p>
  
  <p>my code like this but i get some exception : </p>
  
  <pre><code>func GetDataFromUrl(from:String){
  
          Alamofire.request(from, method: .get).validate().responseJSON { response in
              switch response.result {
              case .success(let value):
                  let json = JSON(value)
  
                  self.storeData = [PopulerMagazalarData]()
  
                        //...Creating Data Obj.
  
                          let data = PopulerMagazalarData()
  
                          let username = json["data"]["store"]["user"]["username"].string
                          let userpic = json["data"]["store"]["user"]["profilePicture"].string
                          let productsCount = json["data"]["store"]["productsCount"].int
                          let description = json["data"]["store"]["description"].string
                          let followedby = json["data"]["store"]["user"]["counts"]["followedBy"].int
                          let totalPage = json["pagination"]["totalPages"].int
                          let count:Int? = json["data"]["products"].array?.count
                          if let ct = count {
  
                              for index in 0...ct-1{
  
                             let datas = PopulerMagazalarData()
  
                             let images = json["data"]["products"][index]["images"]["standart"]["url"].string
  
                              datas.img1 = images
                              self.storeData.append(datas)
                              }
                          }
  
  
                          //*****************
                          data.username = username
                          data.profilPic = userpic
                          data.producsCount = productsCount
                          data.desc = description
                          data.followedby = followedby
  
                          //******************
                          self.storeData.append(data)
  
                  for index in 2 ... totalPage!  {
  
                     self.GetDataFromUrl(from: "https://api......../store/\(username!)?page=\(index)")
                  }
  
                                    // for refresh collecitonView
                      self.refresh_now()
  
  
  
              case .failure(let error):
                  print(error)
              }
          }
      }
  
      //...CollectionView ReloadData func...
      func refresh_now(){
  
          DispatchQueue.main.async (
              execute:
              {
                  self.MyStoreCollectionView.reloadData()
          }
          )
  
      }
  </code></pre>
  
  <p>but when i scroll my app get down .</p>