Json – JMESPath return records based sublist of dictionaries
I'd like to select elements from a list based on the value of bar in the params key-value pair. See example below. I have the following code: with open('foobar.json', 'r') as fp: data = json.load(fp) expr = '[].record' records =…