I want to import data from json file into python file here is my line of code
with open('data.json')as f:
obj = json.load(f)
q = (obj['ques'])
But this error is showing.
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 743: character maps
to <undefined>
The json file imported here has simple questions with options and their right answers.
"ques": [
"Q1. I often have to struggle to see things from another’s point of
view.",....
"ans": [
2,
2,