             }
         }
     }
-
 }

public class JSON:AnyObject, CustomDebugStringConvertible { //Struct??
    
    public func dateFormat(format:String) -> Self {
        jsonDateFormat = format
        return self
    }
    
    public var jsonDateFormat:String?
    
    public var data:AnyObject?
    
    public init?(_ dic:AnyObject?) {
        if dic == nil {

        } else {
            data = dic
        }
    }
    
    var collection:[JSON]? {
        if let a = data as? [AnyObject] {
            return a.map{ JSON($0)! }
        } else {
            return nil
        }
    }
    
    public func dateFormat(format:String) -> Self {
        jsonDateFormat = format
        return self
    }
    
    public var debugDescription: String {
