I tried the below code but it is not working:
import json
with open('G:/analytics/ISB CBA/Residency/Residency1&2/B9MPRACT/data/python.json','r') as f:
for line in f:
tweet = json.loads(line)
print("hello")
I know many solution and problems are there in StackOverflow but I have not found any solution to the problem I m facing while reading this json file. Any response would be appreciable.
Check if this works: pip install simplejson
import simplejson as json
with open('E:/Studies/ISB/python.json','r') as f:
for line in f:
tweet = json.loads(line)
print tweet
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.