Request: records that have a discount field
Input:
id: 1
discount: 5
id: 2
id: 3
discount: 0
jq program: map(select(has("discount")))
Output:
5
0