title: How to filter json data based on key value pair using jq?
body: <p>Suppose I have some json data given below:</p>
  
  <pre><code>{"name":"alon","department":"abc","id":"ss12sd"}
  {"name":"kate","department":"xyz","id":"ajsj3" }
  {"name":"sam","department":"abc","id":"xx1d2"}
  </code></pre>
  
  <p>I want to filter data based on particular department and save it in a different json file. From above data suppose I want to filter all the data whose department is 'abc' and save it in some new json file. How I can do this using jq. I am checking it's manual from <a href="https://stedolan.github.io/jq/manual/#Basicfilters" rel="nofollow noreferrer">here</a> but didn't understood that much.</p>