         return {
             url in
             
-            if let u = url {
-                return [key : u.absoluteString]
+            if let url = url {
+                return [key : url.absoluteString]
             }
             
             return nil

    */
    public static func encode<T: Encodable>(key: String) -> T? -> JSON? {
        return {
            object in
            
            if let object = object {
                return [key : object.toJSON()]
            }
            
            return nil

        return {
            enumValue in
            
            if let enumValue = enumValue {
                return [key : enumValue.rawValue as! AnyObject]
            }
            
            return nil
