                 return LumaJSONObject(parsedDictionary)
             }
             
+            if LumaJSON.logErrors && (err != nil) {
+                println(err?.localizedDescription)
+            }
+            
             return LumaJSONObject(parsed)
         }
         return nil


struct LumaJSON {
    
    static func jsonFromObject(object: [String: AnyObject]) -> String? {
        var err: NSError?
        if let jsonData = NSJSONSerialization.dataWithJSONObject( (object as NSDictionary) , options: nil, error: &err) {

            }
        }
        else if(err != nil) {
            if LumaJSON.logErrors {
                println( err?.localizedDescription )
            }
        }
        return nil
    }
