title: How to get and save the response in swift5 and Alamofire 5 beta version?
body: <p>I tried some code but still, my issue is not resolved. Please help me i am new in swift code.</p>
  <pre><code>let parameters: Parameters = [&quot;skey&quot;: &quot;XXXXXX&quot;,&quot;country_code&quot;:&quot;91&quot;,&quot;mobile&quot;:&quot;XXX004&quot;,&quot;user_role&quot;:&quot;4&quot;]
  
  
   AF.request(&quot;http://XXXXX/dev/clinic/api/v1/login_otp?&quot;, method: .get, parameters: parameters)
      .responseJSON { (response) in
          switch response.result {
          case .success:
              if let JSON = response.result.value as? [String: Any] {
                  let status = JSON[&quot;status&quot;] as! String
                  print(status)
              }
          case .failure(let error): break
              // error handling
          }
  }
  </code></pre>
  <p>bellow is the server responce</p>
  <pre><code> success({
        message = &quot;Otp sent successfully on +9170XXXX1004&quot;;
        status = 1;
  })
  </code></pre>