title: Swift 3 Parsing JSON nesting issue
body: <p>I'm trying to parse some json data and I'm struggling to understand how to pull out and assign the nested values. I can manage the first level but when it comes any further I struggle.</p>
  
  <p>I have an parseProductsData function which receives the data and works fine along with the first level of nesting.
  How can i parse  nested Json array of [“Options”: "values”],[”variants”].</p>
  
  <p>This is my Json. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    products: [
      {
        id: 8931647873,
        title: "A bug Life1123",
        body_html: "
  Ban neckline
  Printed front
  Full sleeves
  Straight hem
  Printed back
  100% khaddar shirt without embroidery
   
  ",
        vendor: "Sapphire",
        product_type: "Configurable Products",
        created_at: "2017-03-01T23:54:41+05:00",
        handle: "a-bug-life",
        updated_at: "2017-03-17T16:30:46+05:00",
        published_at: "2017-01-07T12:33:00+05:00",
        template_suffix: "",
        published_scope: "global",
        tags: "Khaddar, L, M, Women, XL, Yellow",
        variants: [...],
        options: [
          {
            id: 10702667329,
            product_id: 8931647873,
            name: "Size",
            position: 1,
            values: [
              "XXS",
              "S",
              "M",
              "L",
              "XL",
              "XXL"
            ]
          },
          {
            id: 10702667393,
            product_id: 8931647873,
            name: "Color",
            position: 2,
            values: [
              "Yellow"
            ]
          }
        ],
        images: [
          {
            id: 20808811009,
            product_id: 8931647873,
            position: 1,
            created_at: "2017-03-01T23:54:41+05:00",
            updated_at: "2017-03-01T23:54:41+05:00",
            src: "https://cdn.shopify.com/s/files/1/1814/9759/products/a_bugs_life.jpg?v=1488394481",
            variant_ids: []
          },
          {
            id: 20808811073,
            product_id: 8931647873,
            position: 2,
            created_at: "2017-03-01T23:54:41+05:00",
            updated_at: "2017-03-01T23:54:41+05:00",
            src: "https://cdn.shopify.com/s/files/1/1814/9759/products/a_bugs_life..jpg?v=1488394481",
            variant_ids: []
          },
          {
            id: 20808811137,
            product_id: 8931647873,
            position: 3,
            created_at: "2017-03-01T23:54:41+05:00",
            updated_at: "2017-03-01T23:54:41+05:00",
            src: "https://cdn.shopify.com/s/files/1/1814/9759/products/a_bugs_life.__2.jpg?v=1488394481",
            variant_ids: []
          }
        ],
        image: {...}
      },</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code>func parseProductsData() {
      Alamofire.request(BASE_URL+"/admin/products.json").responseJSON { response in
          let result = response.result
          if let dict = result.value as? Dictionary&lt;String, AnyObject&gt; {
              if let list = dict["products"] as? [Dictionary&lt;String, AnyObject&gt;] {
                  for i in 0..&lt;list.count {
                      print(list[i])
                  }
              }
          }
      }
  }
  </code></pre>