In this i need to get the elements from children array which will be in below mentioned url and i need to get the children array from all 11 objects can anyone help me how to implement this ?

```
   let url = "http://www.json-generator.com/api/json/get/cwqUAMjKGa?indent=2"
    var detailsArray :[[String: AnyObject]] = []
    var productName = [String]()
    var childrenArray :[[String: AnyObject]] = []

    override func viewDidLoad() {
        super.viewDidLoad()
        downloadJsonWithURL()
        // Do any additional setup after loading the view.
    }
    func downloadJsonWithURL() {
        let url = NSURL(string: self.url)
        URLSession.shared.dataTask(with: (url as URL?)!, completionHandler: {(data, response, error) -> Void in
            if let jsonObj = try? JSONSerialization.jsonObject(with: data!, options: .allowFragments) as? NSDictionary {
                 self.detailsArray = (jsonObj!.value(forKey: "data") as? [[String: AnyObject]])!
                print(self.detailsArray)
                for item in self.detailsArray{
                    if let detailDict = item as? NSDictionary {
                        if let name = detailDict.value(forKey: "name"){
                            self.productName.append(name as! String)
                        }

                    }
                }

                OperationQueue.main.addOperation({
                    print(self.productName)
                    print(self.childrenArray)
                })
            }
        }).resume()
    }

```