Parse JSON in Python

0 votes

I am not able to parse my data from a JSON file in python. Below is the code:

import json

employee_data='''

{

"people":[

{

"name":"abc",

"email":["aaew@yahoo.com","hdiefh@gmail.com"],

"married":false

},

{

"name":"def",

"email":["aaffidf@gmail.com","gfdg@gmail.com"],

"married":false

}

]}

'''
Apr 26, 2018 in Python by geek.erkami
• 2,680 points
1,226 views

1 answer to this question.

0 votes
import json

data=json.loads(employee_data)

print(data)

answered Apr 26, 2018 by aayushi
• 750 points

Related Questions In Python

0 votes
1 answer

How can I convert a list of dictionaries from a CSV into a JSON object in Python?

You could try using the AST module. ...READ MORE

answered Apr 17, 2018 in Python by anonymous
3,432 views
0 votes
2 answers

Extracting data from a JSON file in Python

Here is what i found and was ...READ MORE

answered Nov 27, 2018 in Python by Rupali
29,667 views
0 votes
1 answer

Convert string list of dict from csv into JSON object in python

You can use the ast module Ex: import ast s = """[{'10': ...READ MORE

answered Sep 12, 2018 in Python by Priyaj
• 58,100 points
2,530 views
0 votes
1 answer

Convert string list of dict from csv into JSON object in python

You can use the ast module Ex: import ast s = """[{'10': ...READ MORE

answered Sep 24, 2018 in Python by Priyaj
• 58,100 points
1,007 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,391 views
0 votes
1 answer
+1 vote
12 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP