title: the difference between responseJSON and responseData of Alamofire
body: <p>I was just playing with Alamofire framework and making few api calls. However I observed there are two request methods in alamofire</p>
  
  <p>What is the difference between  responseJSON  and responseData of Alamofire.</p>
  
  <pre><code>public func responseData(
      queue: DispatchQueue? = nil,
      completionHandler: @escaping (DataResponse&lt;Data&gt;) -&gt; Void)
      -&gt; Self
  {
      return response(
          queue: queue,
          responseSerializer: DataRequest.dataResponseSerializer(),
          completionHandler: completionHandler
      )
  }
  
  
  
  
  public func responseJSON(
      queue: DispatchQueue? = nil,
      options: JSONSerialization.ReadingOptions = .allowFragments,
      completionHandler: @escaping (DataResponse&lt;Any&gt;) -&gt; Void)
      -&gt; Self
  {
      return response(
          queue: queue,
          responseSerializer: DataRequest.jsonResponseSerializer(options: options),
          completionHandler: completionHandler
      )
  }
  </code></pre>