Using jq with bash to run command for each object in array : <p>How can I run a bash command for every json object in a json array using jq? So far I have this:</p>

<pre><code>cat credentials.json | jq -r '.[] | .user, .date, .email' | mycommand -u {user} -d {date} -e {email}
</code></pre>

<p>This doesn't seem to work. How can I take the parameters out of the json array into my command?</p>

<p>My json file looks something like this:</p>

<pre><code>[
   "user": "danielrvt",
   "date": "11/10/1988",
   "email": "myemail@domain.com",
   ...
]
</code></pre>
