Answers for "read json inside json python"

-1

python read json file array

import json
arr = json.loads("example.json")
# Do nifty stuff with resulting array.
Posted by: Guest on August-22-2021
-2

how to read json from python

#this code helps translate JSON file
#to a dictionary

import json

person = '{"name": "Bob", "languages": ["English", "Fench"]}'
person_dict = json.loads(person)

print( person_dict)

print(person_dict['languages'])
Posted by: Guest on September-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language