         XCTAssertEqual((array[1] as! [String : String])["b"]!, "B")
         XCTAssertEqual((array[2] as! [String : NSNull])["null"]!, NSNull())
     }
-    
+
     func testDictionaryAllNumber() {
         var json:JSON = ["double":1.11111, "int":987654321]
         XCTAssertEqual(json.count, 2)
-        
+
         var index = 0
         var dictionary = [String:NSNumber]()
         for (key, sub) in json {

            dictionary[key] = sub.object as AnyObject?
            index += 1
        }
        
        XCTAssertEqual(index, 4)
        XCTAssertEqual(dictionary["a"]! as? String, "aoo")
        XCTAssertEqual(dictionary["bb"]! as? String, "bpp")
        XCTAssertEqual(dictionary["null"]! as? NSNull, NSNull())
    }
    
    func testDictionaryAllArray() {
        var json:JSON = JSON (["Number":[NSNumber(value:1),NSNumber(value:2.123456),NSNumber(value:123456789)], "String":["aa","bbb","cccc"], "Mix":[true, "766", NSNull(), 655231.9823]])

        XCTAssertEqual(json.count, 3)
        
        var index = 0
        var dictionary = [String:AnyObject]()
        for (key, sub) in json {

            dictionary[key] = sub.bool!
            index += 1
        }

        XCTAssertEqual(index, 5)
        XCTAssertEqual(dictionary["t"]! as Bool, true)
        XCTAssertEqual(dictionary["false"]! as Bool, false)
    }

    func testDictionaryAllString() {
        var json:JSON = JSON(rawValue: ["a":"aoo","bb":"bpp","z":"zoo"] as NSDictionary)!
        XCTAssertEqual(json.count, 3)

        var index = 0
        var dictionary = [String:String]()
        for (key, sub) in json {
