код:
Код: Выделить всё
import json
with open('result.json', encoding="utf8") as f:
msgs = json.load(f)
for reply_to_message_id, text in msgs.items():
if 'sometext' in text:
print(text)
print(reply_message_id)
Подробнее здесь: https://stackoverflow.com/questions/792 ... -in-python
Мобильная версия