title: Unique combinations of different values in json using jq
body: <p>I have a json file(input.json) which looks like this : </p>
  
  <pre><code>{"header1":"a","header2":1a, "header3":1a, "header4":"apple"},
  {"header1":"b","header2":2a, "header3":2a, "header4":"orange"}
  {"header1":"c","header2":1a, "header3":2a, "header4":"banana"},
  {"header1":"d","header2":2a, "header3":1a, "header4":"apple"},
  {"header1":"a","header2":2a, "header3":1a, "header4":"banana"},
  {"header1":"b","header2":1a, "header3":2a, "header4":"orange"},
  {"header1":"b","header2":1a, "header3":1a, "header4":"orange"},
  {"header1":"d","header2":1a, "header3":1a, "header4":"apple"},
  {"header1":"a","header2":2a, "header3":1a, "header4":"banana"} (repeat of line 5)
  </code></pre>
  
  <p>I want to filter out only the unique combinations of each of the values jq. 
  Results should look like:</p>
  
  <pre><code>{"header1":"a","header2":1a, "header3":1a, "header4":"apple"},
  {"header1":"b","header2":2a, "header3":2a, "header4":"orange"}
  {"header1":"c","header2":1a, "header3":2a, "header4":"banana"},
  {"header1":"d","header2":2a, "header3":1a, "header4":"apple"},
  {"header1":"a","header2":2a, "header3":1a, "header4":"banana"},
  {"header1":"b","header2":1a, "header3":2a, "header4":"orange"},
  {"header1":"b","header2":1a, "header3":1a, "header4":"orange"},
  {"header1":"d","header2":1a, "header3":1a, "header4":"apple"}
  </code></pre>
  
  <p>I tried doing group by of header1 with the other headers but it didn't generate unique results.
  I've used <code>unique</code> but that didnt generate the proper results.</p>
  
  <p>How can I get this? Im new to jq and not finding many tutorials on it.</p>
  
  <p>Thanks</p>