I am trying to read the data from this JSON file and then eventually print out specific data from the file. The issue is during this initial step of just trying to print all of the data, I get the error "AttributeError: 'str' object has no attribute 'read'".
def jsonLang(fileName):
with open(fileName) as jsonFile:
jsonData = json.load(fileName)
print(jsonData)
jsonLang("/users/sully/repos/30DaysOfPython/textCount/countries_data.json")