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

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

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