So i have a Json file like this:
{"matches_details": [{"MatchID": "Liverpool-Manchester United", "Date": "17/12/2020", "Time": "16:00", "Score": "5-0", "Yellow cards": "2", "Red cards": "1", "State": "FT"}, {"MatchID": "Crystal Palace-Chelsea", "Date": "20/1/2021", "Time": "11:00", "Score": "10-0", "Yellow cards": "10", "Red cards": "20", "State": "HT"}]}
The way to print out all the array is:
f = open('datngu.json',)
data = json.load(f)
for i in data['matches_details']:
print(i)
f.close()
And the way to print a single one:
print(data['matches_details']['MatchID'])
So how can i change it into a 2d array with row,col format, because i need to insert these data into a pyqt5 qtTableWidgetItem UI