Skip to content Skip to sidebar Skip to footer

Parsing/looping Over Json Objects From A Text File (python)

simple question. I have a text file containing JSON objects which hold real estate information, like so: { 'marketing_package_url': 'http://www.capitalpacific.com/inquir

Solution 1:

You can use the following code to get the list of marketing_package_urls to list, if the data is a list of dictionaries.

list = [x['marketing_package_url'] for x in data]

Post a Comment for "Parsing/looping Over Json Objects From A Text File (python)"