title: How to parse a JSON that has dictionaries and arrays in Swift 4?
body: <p>I need some help on parsing a JSON in Swift 4, I already know how to do it with a simple JSON like this one:</p>
  
  <pre><code>{"numNotif":1,"numTqClose":7,"reply":3}
  </code></pre>
  
  <p>But now I have to parse another JSON that is so huge, it has this structure: <a href="https://textuploader.com/dnx8f" rel="nofollow noreferrer">https://textuploader.com/dnx8f</a></p>
  
  <p>And this is how I parse a simple JSON but it is not working in this case</p>
  
  <pre><code>import UIKit
  struct closeDtoList: Decodable {
    let CategoryStr:String
  }
  class test: UIViewCOntroller {
    super.viewDidLoad() {
      let urlJSON = "http://www.example.net/site/gitAll"
      guard let url = URL(string: urlJSON) else {return}
      URLSession.shared.dataTask(with: url) { (data, response, error) in
        guard let data = data else {return}
        guard error == nil else {return}
        do {
          let closeDto = try JSONDecoder().decode(closeDtoList.self, from: data)
          print(closeDto.CategoryStr)
        } catch let error {
          print(error)
    }.resume()
  }
  </code></pre>
  
  <p>Well, so I would like to use the same code or a similar one in order to parse a JSON that has dictionaries "{}" and arrays "[]" before the values, so in fact I want to get the value of issueId, CategoryStr and so on, but I do not have any idea about how to do it.</p>
  
  <p>Also, I would need to save these values in an array (each value in each field), will it be possible?</p>
  
  <p>Thank you in advance!</p>