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

                return LumaJSONObject(parsedDictionary)
            }
            
            return LumaJSONObject(parsed)
        }
        return nil


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