Request: total quantity per sku as an object
Input:
sku: a
qty: 2
sku: b
qty: 1
sku: a
qty: 3
jq program: group_by(.sku) | map({key: .[0].sku, value: (map(.qty) | add)}) | from_entries
Output:
a: 5
b: 1