jquery filter code example
Example 1: jq filter array
$ json='[{"genre":"deep house"}, {"genre": "progressive house"}, {"genre": "dubstep"}]'
$ echo "$json" | jq -c '.[] | select(.genre | contains("house"))'
{"genre":"deep house"}
{"genre":"progressive house"}
Example 2: jquery filter data
var $previous = $('.navlink').filter(function() {
return $(this).data("selected") == true
});
Example 3: filter jq
jq '.' | grep value