             jsonStr += "\"\(key)\":"
             if let v = value as? SECJsonable {
                 jsonStr += "\(v.toJson())"
+            } else if let d = value as? CustomStringConvertible {
+                jsonStr += "\(d.description)"
             } else {
                 jsonStr += "\(value)"
             }

}



    }
}

extension Optional: CustomStringConvertible {
    
    public var jsonString: String {
        return description
    }
    
    public var description: String {
        switch self {
        case .None:
            return "null"
