import json with open("/home/lxf/.config/vivaldi-snapshot/Default/Notes", 'r') as data_file: data = json.load(data_file) for d in data['children']: if d['subject'] == 'lbh notes': print(d['subject'])