Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Capture json values to iterate in a loop

sree:

I have a json file as below,


{
"name": "abc Analytics",
"is_active": true
}
{
"name": "123 Analytics",
"is_active": true
}
{
"name": "xyz Analytics",
"is_active": true
}

I need to capture all the values in name attribute in this file and store in a list to run something for each of value, below is overview of what I want to achieve


for i in List
print (name)

The output will be as below


abc Analytics
123 Analytics
xyz Analytics

How can I achieve this in python

Thanks



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Capture json values to iterate in a loop

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×