title: How to read array values in Javascript?
body: <p>I have a response from PHP I am trying to read this on JS but didn't get the value. I want to get the value of <strong>responseCode</strong>. But it returns me undefined.</p>
  <blockquote>
  <p>Response Code :</p>
  </blockquote>
  <pre><code>Array
  (
      [request] =&gt; 
      [receiptId] =&gt; 11233-555
      [responseCode] =&gt; 0
      [message] =&gt; PSI-3217:Maximum number of attempts reached.
      [transTime] =&gt; 4/2/2021 8:50:09 PM
      [merchantEmail] =&gt; johndoe@gmail.com
      [merchantId] =&gt; 19
  )
  </code></pre>
  <blockquote>
  <p>JS Code :</p>
  </blockquote>
  <pre><code>           $.ajax({
                  method: &quot;POST&quot;,
                  url: &quot;https://john.com/ca/pay.php&quot;,
                  data: objData,
                  success: function (data, status) {
                      
                      console.log(data['responseCode']);
                     
                  },
                  error: function (error) {
                  }
              })
  </code></pre>