Traverse javascript array of objects : <p>I have an javascript array of objects as follows :</p>

<pre><code>list = [
            {
                "employee_work_rights_id":74,
                "amazon_id":173,
                "employee_id":3,
                "work_rights":"australian_citizen",
                "document_type":"password",
                "display_name":"a.pdf",
                "filename":"abc.pdf",
                "s3bucket":"xyz",
                "filepath":"employer27\/employee3\/"

            },

            {
                "employee_work_rights_id":75,
                "amazon_id":175,
                "employee_id":3,
                "work_rights":"australian_citizen",
                "document_type":"password",
                "display_name":"a.pdf",
                "filename":"xyz.pdf",
                "s3bucket":"zyx",
                "filepath":"employer27\/employee3\/"
            }
        ]
</code></pre>

<p>I tried to access amazon_id as follows :</p>

<pre><code>console.log(list[0].amazon_id);
</code></pre>

<p>This is giving me undefined. How can I access this ?</p>
