 
 import Foundation
 import Alamofire
-
-// MARK: - JSON
 
 class RequestJSONDecodableResponseSerializer {
     /// Returns a JSON object contained in a result type constructed from the response data using `JSONSerialization`

    @discardableResult
    public func responseJSONDecodable<T: Decodable>(
        queue: DispatchQueue? = nil,
        keyPath: String? = nil,
        completionHandler: @escaping (DataResponse<T>) -> Void)
        -> Self
    {
        return response(
            queue: queue,
            responseSerializer: DataRequest.JSONDecodableResponseSerializer(keyPath: keyPath),
            completionHandler: completionHandler
        )
    }

    @discardableResult
    public func responseJSONDecodable<T: Decodable>(
        queue: DispatchQueue? = nil,
        decoder: JSONDecoder? = JSONDecoder(),
        completionHandler: @escaping (DownloadResponse<T>) -> Void)
        -> Self
    {
        return response(
            queue: queue,
            responseSerializer: DownloadRequest.JSONDecodableResponseSerializer(decoder: decoder),
            completionHandler: completionHandler
        )
    }
