         }
     }
 
-    extension Foundation.NSArray {
+    extension Foundation.NSMutableArray {
         public func add(_ object: AnyObject) {
             self.addObject(object)
         }

import Foundation

#if !os(Linux)
    typealias NSData = Foundation.Data
#endif

#if os(Linux)
    typealias JSONSerialization = Foundation.NSJSONSerialization

    extension Foundation.NSDictionary {
        public subscript(key: String) -> AnyObject {
            get {
                return self.object(forKey: key)
            }
            set {
                self.setObject(newValue, forKey: key)

        print(self)
    }

    private static func _cast(_ anyObject: Any) -> JSON {
        if let dict = anyObject as? [String: AnyObject] {
            var object: [String: JSON] = [:]
            for (key, val) in dict {
