I have a flat file with data in it and I am trying to search through a JSON dataset to get back the data. Here is how I am searching through the JSON dataset with a known variable:
for i in get_network_json:
if i["name"] == str(store):
network_id=(i["id"])
print network_id
What I want to do is instead of using a variable for "store" I want to pull that data in from a flat file and iterate through a file and for each line in the file print the data. I am just not sure what to use for that.