0
Writing JSON Parser using Python
Hey folks, I need your help! I want to analyze .json file and parse it with python. I'm py newbie so please help me with your knowledge if you can and don't judge me if I'm writing anything wrong. Here's my code: import json with open ('filename.json', 'r') as f: filename_dict = json.load(f) for fileitem in filename_dict: print(fileitem['text_i_want_to_search']) The problem is that I want to write a code where I can count concrete values from my json file but I don't know how to do it. (pls, don't make my day worse w/ bad comments:(( thank you.)
2 odpowiedzi
+ 2
json is like python dict
{...}
https://code.sololearn.com/c03ticyOJRWS/?ref=app
+ 1
Thanks for your help💜 @Sousou