Using jq to understand large Mechanic operations
As Mechanic staff, we'll be using this page ourselves, to catalog the jq commands we find useful whenever we're inspecting exported events.
Count all action runs for an event whose options include the string "metafields"
cat event.json | jq ".event.task_runs.action_runs | select(.action_options | contains(\"metafields\"))" | jq -s ". | length"