My json file
{
"Domain": "Hello",
"Points": 0,
"Search Name": "wonderful1 hello",
"UserId": "wonder1",
"UserName": "Wonderful1 Hello",
"UserRole": "CONSUMER","CONS"
}
My code:
with open('e:\\data\\datafile.json') as f:
content = f.read()
df=pd.read_json('[' + content.replace('}\n', '},') + ']')
unable to load the into dataframe. If i get one more than one value in UserRole column. I was not able to load the data? Can you throw some lights on this?