def METHOD_NAME(d, depth, options):
    for k in d:
        if k in options['ignore']:
            continue
        if options['keep'] != '':
            if k not in options['keep']:
                continue
        if isinstance(d[k], (dict, list)):
            add_header(k, depth)
            parse_json(d[k], depth + 1, options)
        else:
            add_value(k, d[k], depth)