title: Getting null response using Alamofire
body: <pre><code>{
    "vUserList": [
      {
        "firstName": "Kate",
        "lastName": "Bell",
        "email": "katebell@mac.com"
      },
      {
        "lastName": "Higgins",
        "firstName": "Daniel",
        "email": "dhiggins@mac.com"
      },
      {
        "email": "JohnAppleseed@mac.com",
        "firstName": "John",
        "lastName": "Appleseed"
      },
      {
        "lastName": "Haro",
        "firstName": "Anna",
        "email": "annaharo@mac.com"
      },
      {
        "email": "hankzakroff@mac.com",
        "firstName": "Hank",
        "lastName": "Zakroff"
      }
    ]
  }
  </code></pre>
  
  <p>This is the request parameters which I need to send to the server.</p>
  
  <pre><code>func getContactsParameters() -&gt; [String : Any] {
          return [Keys.vUserList : arrContacts]
      }
  
  var headers = [
                  Keys.XAPIKEY: "5dik8fo5yecc25bfcc562724dd674bde5fh5ju8y"
              ]
  
  Alamofire.request("urlString", method: .post, parameters: getContactsParameters(), encoding: JSONEncoding.default, headers: headers).responseJSON { response in
                  print(response)
  }
  </code></pre>
  
  <p>getContactsParameters() console log is as below,
  <a href="https://i.stack.imgur.com/qejE7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qejE7.png" alt="enter image description here"></a>
  In response, I am getting Null with the Success code.</p>
  
  <p>I talked with backend people, they are saying, if I don't receive this key "vUserList" then you may get null response. But, I double-checked the spelling and everything.
  Another scenario is that, they are saying if we don't get request in proper json then you may get null response.</p>
  
  <p>I tried many different solutions, none of them are working. :(</p>
  
  <p>Any help is appreciated! </p>
  
  <p>Here I am attaching, postman screenshot. In postman it is working fine.
  <a href="https://i.stack.imgur.com/ajjuK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ajjuK.png" alt="enter image description here"></a></p>