Json – Use jq to count elements based on group by
I have a list of movies like this: [ { "title":"X", "genres":[ { "tag":"Horror" }, { "tag":"Thriller" }, { "tag":"Mystery" } ] }, { "title":"Zero Dark Thirty", "genres":[ { "tag":"Thriller" }, { "tag":"Drama" }, { "tag":"History" }, { "tag":"War" }…