Answers for "how to open json. file"

12

open json file python

import json

with open('data.txt') as json_file:
    data = json.load(json_file)
Posted by: Guest on March-02-2020
1

read file json

with open('file.txt', 'r') as f:
	data = f.read()
Posted by: Guest on May-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language