title: Xcode confused with IQAir Api Parsing
body: <p>so I use I am trying to parse through this data:</p>
  <pre><code>{&quot;status&quot;:&quot;success&quot;,&quot;data&quot;:{&quot;city&quot;:&quot;Sunnyvale&quot;,&quot;state&quot;:&quot;California&quot;,&quot;country&quot;:&quot;USA&quot;,&quot;location&quot;:{&quot;type&quot;:&quot;Point&quot;,&quot;coordinates&quot;:[-122.03635,37.36883]},&quot;current&quot;:{&quot;weather&quot;:{&quot;ts&quot;:&quot;2020-07-23T00:00:00.000Z&quot;,&quot;tp&quot;:25,&quot;pr&quot;:1009,&quot;hu&quot;:44,&quot;ws&quot;:6.2,&quot;wd&quot;:330,&quot;ic&quot;:&quot;02d&quot;},&quot;pollution&quot;:{&quot;ts&quot;:&quot;2020-07-23T00:00:00.000Z&quot;,&quot;aqius&quot;:7,&quot;mainus&quot;:&quot;p2&quot;,&quot;aqicn&quot;:2,&quot;maincn&quot;:&quot;p2&quot;}}}}
  </code></pre>
  <p>I am trying to get a hold of the <code>aqius</code> result, as well as the <code>tp</code>...
  Here is my code right now, I have created these structs:</p>
  <pre><code>struct Response: Codable{
      let data: MyResult
      let status: String
  }
  
  struct MyResult: Codable {
      let city: String
  }
  </code></pre>
  <p>As you can see, I have gotten city, and I can confirm it works because when I get the request and <code>print(json.data.city)</code> it prints &quot;Sunnyvale&quot;.
  But how would I get the other values? I have been stuck on how to obtain values within the <code>location</code> , <code>current</code> and <code>pollution</code> data structures, how would I do this?
  Thanks</p>