         nextController = segue.destination
 
         if let indexPath = self.tableView.indexPathForSelectedRow {
-            let row = (indexPath as NSIndexPath).row
+            let row = indexPath.row
             var nextJson: JSON = JSON.null
             switch self.json.type {
             case .array:

    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "JSONCell", for: indexPath) as UITableViewCell

        let row = (indexPath as NSIndexPath).row

        switch self.json.type {
        case .array:

    // MARK: - Table view data source

	override func viewDidLoad() {
		title = "SwiftyJSON(\(json.type))"
	}

    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        switch self.json.type {
        case .array, .dictionary:
            return self.json.count
        default:
            return 1
