Writing JSON Parser using Python | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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.)

4th Mar 2020, 3:55 PM
AGirlHasNoName
AGirlHasNoName - avatar
2 ответов
4th Mar 2020, 4:15 PM
Sousou
Sousou - avatar
+ 1
Thanks for your help💜 @Sousou
4th Mar 2020, 5:57 PM
AGirlHasNoName
AGirlHasNoName - avatar