Python – Query JSON file for occurrences of key and create list of values via /r/learnprogramming


Python – Query JSON file for occurrences of key and create list of values

I cannot find anything about this online and I'm pretty lost at this point. I have a JSON file of my runs (smashrun.com) with information as date and distance for each. What I would like to do is output each occurrence of the key "distance" to a variable, or to a list – something that I can manipulate that is not JSON

This seems pretty basic but I cant find any resources online. Thanks

Submitted July 17, 2017 at 05:04PM by Broadsid3
via reddit http://ift.tt/2ut8k2J

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s