         return (self as NSString).integerValue
     }
     
-    public func parseJSON(_ block:jsonHandler)->Void{
+    public func parseJSON(handler block:jsonHandler)->Void{
         let data = self.data(using: String.Encoding.utf8)
-        data?.parseJSON(block)
+        data?.parseJSON(handler: block)
     }
     
     public func toUTF8Data()->Data{

    /*!
        Create a Foundation object from JSON data.
     */
    public func parseJSON(_ block:(AnyObject?,NSError?)->Void){
        var obj:AnyObject = "not a json"
        var theError:NSError?
        do{

            }
            
            if let _ = self.jsonHandler{
                self.data.parseJSON(handler: { (object, error) in
                    OperationQueue.main({
                        self.jsonHandler?(anyObject:object,error:error)
                    })
