Answers for "how to get specific data from json using python"

62

python read json file

import json

with open('path_to_file/person.json') as f:
  data = json.load(f)

print(data)
Posted by: Guest on April-08-2020
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

Code answers related to "how to get specific data from json using python"

Code answers related to "Javascript"

Browse Popular Code Answers by Language