title: Trying to use jq to format json data on one line
body: <p>The output below is my json output from my curl query.   I have tried multiple jq filters to try to get to a result that looks like
  <strong>interfaceId,vendor,addresses</strong></p>
  <p>from my json/curl output, After applying &quot;jq&quot; filters, I am only getting:</p>
  <pre><code>eth1
  
  eth1
  
  eth1
  
  Apple
  
  BB Technologies (Limited)
  
  null
  
  Ipaddress#1
  
  Ipaddress#2
  
  Ipaddress#3
  </code></pre>
  <p>I want the output to be:</p>
  <p><code>interfaceId,vendor,addresses</code>        for each record returned by curl/json</p>
  <p>Can someone help me out on this</p>
  <pre><code>{
    &quot;deviceId&quot;: &quot;75c2fde3-4b5a-4faf-a24d-d8019e8911e1&quot;,
    &quot;macTable&quot;: [
      {
        &quot;interfaceId&quot;: &quot;eth1&quot;,
        &quot;addresses&quot;: [
          &quot;192.168.5.101&quot;
        ],
        &quot;mac&quot;: &quot;3c:15:c2:c3:f0:e0&quot;,
        &quot;vendor&quot;: &quot;Apple&quot;,
        &quot;vlan&quot;: null,
        &quot;hostname&quot;: null,
        &quot;device&quot;: {
          &quot;id&quot;: null,
          &quot;connected&quot;: null,
          &quot;enabled&quot;: null,
          &quot;authorized&quot;: null,
          &quot;ipAddress&quot;: null,
          &quot;identification&quot;: {
            &quot;id&quot;: null,
            &quot;type&quot;: null
          },
          &quot;overview&quot;: {
            &quot;status&quot;: &quot;unknown&quot;
          }
        },
        &quot;site&quot;: null
      },
      {
        &quot;interfaceId&quot;: &quot;eth1&quot;,
        &quot;addresses&quot;: [
          &quot;192.xxx.x.1&quot;
        ],
        &quot;mac&quot;: &quot;xx:83:c4:01:ac:5d&quot;,
        &quot;vendor&quot;: &quot;BB Technologies (Limited)&quot;,
        &quot;vlan&quot;: null,
        &quot;hostname&quot;: null,
        &quot;device&quot;: {
          &quot;id&quot;: null,
          &quot;connected&quot;: null,
          &quot;enabled&quot;: null,
          &quot;authorized&quot;: null,
          &quot;ipAddress&quot;: null,
          &quot;identification&quot;: {
            &quot;id&quot;: null,
            &quot;type&quot;: null
          },
          &quot;overview&quot;: {
            &quot;status&quot;: &quot;unknown&quot;
          }
        },
        &quot;site&quot;: null
      },
      {
        &quot;interfaceId&quot;: &quot;eth1&quot;,
        &quot;addresses&quot;: [
          &quot;192.xxx.x.100&quot;
        ],
        &quot;mac&quot;: &quot;9f:25:0b:4b:32:73&quot;,
        &quot;vendor&quot;: null,
        &quot;vlan&quot;: null,
        &quot;hostname&quot;: null,
        &quot;device&quot;: {
          &quot;id&quot;: null,
          &quot;connected&quot;: null,
          &quot;enabled&quot;: null,
          &quot;authorized&quot;: null,
          &quot;ipAddress&quot;: null,
          &quot;identification&quot;: {
            &quot;id&quot;: null,
            &quot;type&quot;: null
          },
          &quot;overview&quot;: {
            &quot;status&quot;: &quot;unknown&quot;
          }
        },
        &quot;site&quot;: null
      }
    ],
    &quot;pagination&quot;: {
      &quot;total&quot;: 3,
      &quot;count&quot;: 20,
      &quot;page&quot;: 1,
      &quot;pages&quot;: 1
    }
  }
  </code></pre>