title: How to iterate each object in json array jq
body: <p>Intention: Need to iterate the each item in json array using jq and proccess seperately</p>
  <p>api returns data in form</p>
  <pre><code>{
    &quot;name&quot;: [
      {
        &quot;first&quot;: &quot;first&quot;,
        &quot;class&quot;: false,
        &quot;type&quot;: &quot;B&quot;
      },
      {
        &quot;first&quot;: &quot;second&quot;,
        &quot;class&quot;: false,
        &quot;type&quot;: &quot;B&quot;
      },
      {
        &quot;first&quot;: &quot;third&quot;,
        &quot;class&quot;: false,
        &quot;type&quot;: &quot;A&quot;
      }
    ]
  }
  </code></pre>
  <p>And i am able to parse it as</p>
  <pre><code>data=`curl http://some.ur;l`
  echo &quot;$data&quot; | jq -rc '.name[] | select(.type==&quot;B&quot;) | .class=true'
  </code></pre>
  <p>it returns data as</p>
  <pre><code>{&quot;first&quot;: &quot;first&quot;,&quot;class&quot;: true, &quot;type&quot;: &quot;B&quot;}
  {&quot;first&quot;: &quot;second&quot;, &quot;class&quot;: true, &quot;type&quot;: &quot;B&quot;}
  </code></pre>
  <p>Now i want to proccess these <code>two</code> outputs in such a way so that i can make a PUT call for each of them . I tried to learn some concepts of <code>xargs</code> but could not make it done</p>
  <p>I piped the output to <code>| xargs -n1</code> but it removed all the quotes from the string</p>