Answers for "fromJson in python"

2

how to get specific data from json using python

with open('distros.json', 'r') as f:
    distros_dict = json.load(f)

for distro in distros_dict:
    print(distro['Name'])
Posted by: Guest on July-29-2020
2

Json in python

import json

json_file = json.load(open("your file.json", "r", encoding="utf-8"))

# For see if you don't have error:
print(json_file)
Posted by: Guest on October-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language