                     
                 } else {
                     // okay the json object was nil, something went wrong. Maybe the server isn't running?
-                    let jsonStr = NSString(data: data!, encoding: String.Encoding.utf8)
+                    let jsonStr = NSString(data: data!, encoding: String.Encoding.utf8.rawValue)
                     print("could not parse JSON: \(jsonStr)")
                     let alert = UIAlertController(title: "Alert", message: "Could not Parse Json", preferredStyle: UIAlertControllerStyle.alert)
                     alert.addAction(UIAlertAction(title: "Click", style: UIAlertActionStyle.default, handler: nil))

            {
                // a catch all...
            }
        })
        task.resume()
    }
    

        // with a valid row number thanks to the numberOfRowsInSection function above
        if let photoDict = getPhotoDictAtIndex(indexPath.row)
        {
            if let userDict = photoDict["user"] as? [AnyHashable:Any]
            {
                tableCell.userNameLabel.text = userDict["fullname"] as? String

