                 
                 // TODO: pass any JSON errors into completion function
                 let json: JSON?
-                if preFilter != nil {
-                    json = self.preFilterResponseData(preFilter!, data: data)
+                if responseFilter != nil {
+                    json = self.preFilterResponseData(responseFilter!, data: data)
                 } else {
                     json = JSON(data: data!)
                 }

    public func jsonPOST(
        uri:String,
        postObject: AnyObject?,
        preFilter: String?,
        additionalHeaders: [String: String]?,
        completion: jsonCompletion?) {
            


public extension NaiveHTTPProtocol {
    public typealias jsonCompletion = (json: JSON?, response: NSURLResponse?, error: NSError?) -> Void

    public func jsonGET(
        uri:String,
        params:[String: String]?,
