title: Switch must be exhaustive / Cannot find 'JSON' in scope
body: <p>guys!
  Once again my app is crashing and I don't have a clue to what to do. Does anyone could help out?!
  By the way, I'm beginner.. I'm learning. Please, be kind.</p>
  <p>AF.request(URL_USER_ADD, method: .post, parameters: body, encoding: JSONEncoding.default, headers: header).responseJSON { (response) in</p>
  <pre><code>        switch response.result {
                case .success(let result):
                   if let json = result as? Data {
                      guard let data = response.data else { return }
                      let json = JSON(data: data)
                      let id = json[&quot;_id&quot;].stringValue
                      let color = json[&quot;avatarColor&quot;].stringValue
                      let avatarName = json[&quot;avatarName&quot;].stringValue
                      let email = json[&quot;email&quot;].stringValue
                      let name = json[&quot;name&quot;].stringValue
                      
                      UserDataService.instance.setUserData(id: id, color: color, avatarName: avatarName, email: email, name: name)
                      completion(true)
                   
                   } else {
                      completion(false)
                      debugPrint(response.result as Any)
  </code></pre>
  <p>Check it out the image of the error!</p>
  <p>Thanks!</p>
  <p><a href="https://i.stack.imgur.com/g546J.png" rel="nofollow noreferrer">enter image description here</a></p>