How to iterate over list of dictionaries in bash
<p>I am currently learning shell scripting and need your help!</p>

<pre><code>&gt; array = [{u'name': u'androidTest', u'arn': u'arn:XXX', u'created':
1459270137.749}, {u'name': u'android-provider2016-03-3015:23:30', u'arn':XXXXX', u'created': 1459365812.466}]
</code></pre>

<p>I have a list of dictionary and want to extract the <code>arn</code> value from the dictionary. In <code>python</code> it is pretty simple for example:</p>

<pre><code>for project in array:
   print project['arn']
</code></pre>

<p>How will I write the equivalent loop in bash? If I try something like this, it is not working:</p>

<pre><code>for i in "$array"
do
  echo $i['arn']
done
</code></pre>

<p>The suggested duplicate is for associative arrays, not a list of associative arrays.</p>