title: Parsing JSON data with URLSession and Codable
body: <p>i Parsing JSON with URLSession And Map it With Codable , but i cant fetch <strong>result</strong> array Inside JSON Data to show it in table view. my question it is how i can fetch <strong>result</strong> and make an object from it to use in table view . </p>
  
  <p>JSON Data :</p>
  
  <pre><code>{
      "result": [
          {
              "Id": 5,
              "Title": "test",
              "EnTitle": "Story and Novel"
          },
          {
              "Id": 38,
              "Title": "test",
              "EnTitle": " Motivational"
          }
      ],
      "status": {
          "httpStatusCode": 200
      }
  } 
  </code></pre>
  
  <p>JSON Model : </p>
  
  <pre><code>struct Result : Decodable {
      let status: status
      let result: result
  }
  
  struct status : Decodable {
      let httpStatusCode: Int
  }
  
  struct result : Decodable {
      let Id: Int
      let Title: String
      let EnTitle: String
  }
  </code></pre>
  
  <p>View Controller:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
        gettingData()
  }
  func gettingData(){
  
      let url = URL(string: URL)!
      let session = URLSession.shared
      var request = URLRequest(url: url)
      request.addValue("c9d5f944", forHTTPHeaderField: "X-test")
      let task = session.dataTask(with: request as URLRequest, completionHandler: { data, response, error in
          guard error == nil else {
              return
          }  
          guard let data = data else {
              return
          }
          do {
               let decoder = JSONDecoder()
              decoder.keyDecodingStrategy = .convertFromSnakeCase
              let response = try decoder.decode(Result.self, from: data)
              print(response)
  
          } catch {
              print(error)
          }
      })
      task.resume()
  }
  </code></pre>