I am trying to read the below json data using attached Python code (Python V3.5.1) but the issue is that Character representation ç as ç and £ as £. Please help me with the code which will correctly read and write data to and from the file, without changing the format or char set
Json Data:
{
"config":[{
"filetype": ".csv",
"coldelimiter":"ç",
"rowdelimiter":"£"
}]
}
Python code:
import json
import os
fileLoc=os.path.join(os.getcwd(),"appconfig.json")
json_data=open(fileLoc).read()
print(json_data)
Output:
{
"config":[{
"filetype": ".csv",
"coldelimiter":"ç",
"rowdelimiter":"£"
}]
}