Both are used to revert json to get dic/list
json.load(data):
'data ’ should be file content by Open function
json.loads(data):
'data ’ should be string
f = open(os.path.join(os.path.abspath('..'),'data\data.json'), 'r')
content= json.load(f)
Both are used to revert json to get dic/list
json.load(data):
'data ’ should be file content by Open function
json.loads(data):
'data ’ should be string
f = open(os.path.join(os.path.abspath('..'),'data\data.json'), 'r')
content= json.load(f)