             request.addValue("application/json", forHTTPHeaderField: "Content-Type")
             
             if !data.isEmpty {
-                request.httpBody = try? JSONSerialization.data(withJSONObject: data, options: .prettyPrinted)
+                request.httpBody = try? serialization.data(withJSONObject: data, options: [])
             }
             
         default:

    }
    
    public func parse(data: Data) -> RequestOperationResult {
        if JSONSerialization.isValidJSONObject(data) {
            guard let jsonObject = try? JSONSerialization.jsonObject(with: data, options: []) else {
                return .error(RequestError.unparseableJSON)
            }
            


public class JSONRequestOperation: RequestOperation {
    
    internal var serialization: JSONSerialization.Type
    
    public init(serialization: JSONSerialization.Type) {
        self.serialization = serialization
    }
    
    public func build(url: URL, method: RequestMethod, data: [AnyHashable: Any]) -> URLRequest {
        var request = URLRequest(url: url)
        request.addValue("application/json", forHTTPHeaderField: "Accept")
