title: swift error: Value of type _ has no member _
body: <p><a href="https://i.stack.imgur.com/3GC83.png" rel="nofollow noreferrer">how do I fix this error? xcodes-13</a></p>
  <p>This Is my code for working with api:</p>
  <pre><code>struct everything: Codable{
          let topic: String
          let content: String
          let category: String
          let time: String
          let price: String
          let prize: String
      }    
      struct parsingss : Codable {
          let scrims: [everything]
      }
      
      @IBOutlet weak var prizeLabel: UILabel!
      @IBOutlet weak var priceLabel: UILabel!
      @IBOutlet weak var timeLabel: UILabel!
      @IBOutlet weak var categoryLabel: UILabel!
      @IBOutlet weak var ContentLabel: UILabel!
      @IBOutlet weak var TopicLabel: UILabel!
      
  
      override func viewDidLoad() {
          super.viewDidLoad()
          
          if let url = URL(string: &quot;http://{Local-Host}/post&quot;) {
             URLSession.shared.dataTask(with: url) { data, response, error in
          if let data = data {
              let jsonDecoder = JSONDecoder()
              do {
              let parsedJSON = try jsonDecoder.decode(parsingss.self, from: data)
                  
                  print(parsedJSON)
                  
                  DispatchQueue.main.async {
  
                      self.TopicLabel.text = parsedJSON.topic
                      self.ContentLabel.text = parsedJSON.content
                      self.categoryLabel.text = parsedJSON.category
                      self.timeLabel.text = parsedJSON.time
                      self.priceLabel.text = parsedJSON.price
                      self.prizeLabel.text = parsedJSON.prize
                      
                     }
                      }
              catch {
              print(error)
                          
                      }
                     }
                 }.resume()
              }
      }
  }
  </code></pre>
  <blockquote>
  <p>&quot;error : Value of type 'testViewController.parsingss' has no member 'topic'&quot;</p>
  </blockquote>
  <p>Reply with some codes would be better either ways. Thanks developers.</p>
  <p>Without &quot;trying to print in label&quot;, the result does come to the output. it is in an array:</p>
  <pre><code>[ scrims: {
          &quot;topic&quot;: &quot;tv&quot;,
          &quot;content&quot;: &quot;done&quot;,
          &quot;category&quot;: &quot;gg&quot;,
          &quot;time&quot;: &quot;10pm&quot;,
          &quot;price&quot;: &quot;Rs.100&quot;,
          &quot;prize&quot;: &quot;Rs.1000&quot;,
          &quot;id&quot;: 1
      },
      {
          &quot;topic&quot;: &quot;1&quot;,
          &quot;content&quot;: &quot;d1&quot;,
          &quot;category&quot;: &quot;g1&quot;,
          &quot;time&quot;: &quot;10pm&quot;,
          &quot;price&quot;: &quot;Rs.11&quot;,
          &quot;prize&quot;: &quot;R1&quot;,
          &quot;id&quot;: 2
      } ]
  </code></pre>
  <p>Thanks!</p>