title: Trouble with displaying JSON array
body: <p>could you please help me figure out why I'm getting "undefined" instead of the value.</p>
  
  <p>As it is plain to see I'm having trouble getting the data from the array, in firebug I get this as a response....</p>
  
  <pre><code>{"status":"success",
   "response":[
      {"email":
          {"email":"xxxxx@iing.mxl.uabc.mx",
           "valid":"1",
           "reason":null,
           "confirmed_at":"0000-00-00 00:00:00",
           "contact_email":"1",
           "login_email":"1",
           "users_id":"6375"},
       "history":[
          {"contactRole":"Non Classified Lead with History",
           "contactProject":"2082",
           "contactBrand":"B"},
          {"contactRole":"co Author",
           "contactProject":"32",
           "contactBrand":"B"},
          {"contactRole":"co Author",
           "contactProject":"176",
           "contactBrand":"B"},
          {"contactRole":"co Author",
           "contactProject":"582",
           "contactBrand":"B"},
          {"contactRole":"co Author",
           "contactProject":"1858",
           "contactBrand":"B"},
          {"contactRole":"Author",
           "contactProject":"12",
           "contactBrand":"J"},
          {"contactRole":"Editor",
           "contactProject":"176",
           "contactBrand":"B"}]},
      {"email":
          {"email":"xxxxx@hotmail.com",
           "valid":"1",
           "reason":null,
           "confirmed_at":"0000-00-00 00:00:00",
           "contact_email":"0",
           "login_email":"0",
           "users_id":"6375"},
       "history":[]}]}
  </code></pre>
  
  <p>this is the code referring to my javascript file
  <a href="http://pastebin.com/gPaEAKim" rel="nofollow noreferrer">http://pastebin.com/gPaEAKim</a></p>
  
  <p>snapshot of the view that I'm getting.</p>
  
  <p><img src="https://i.stack.imgur.com/Iq5vE.png" alt="enter image description here"></p>
  
  <p>Just to be on the safe side...this is the way the array looks like when I debug it from the controller</p>
  
  <pre><code>    Array
  (
      [status] =&gt; success
      [response] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [email] =&gt; Array
                          (
                              [email] =&gt; xxxxx@iing.mxl.uabc.mx
                              [valid] =&gt; 1
                              [reason] =&gt; 
                              [confirmed_at] =&gt; 0000-00-00 00:00:00
                              [contact_email] =&gt; 1
                              [login_email] =&gt; 1
                              [users_id] =&gt; 6375
                          )
  
                      [history] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                      [contactRole] =&gt; Non Classified Lead with History
                                      [contactProject] =&gt; 2082
                                      [contactBrand] =&gt; B
                                  )
  
                              [1] =&gt; Array
                                  (
                                      [contactRole] =&gt; co Author
                                      [contactProject] =&gt; 32
                                      [contactBrand] =&gt; B
                                  )
  
                              [2] =&gt; Array
                                  (
                                      [contactRole] =&gt; co Author
                                      [contactProject] =&gt; 176
                                      [contactBrand] =&gt; B
                                  )
  
                              [3] =&gt; Array
                                  (
                                      [contactRole] =&gt; co Author
                                      [contactProject] =&gt; 582
                                      [contactBrand] =&gt; B
                                  )
  
                              [4] =&gt; Array
                                  (
                                      [contactRole] =&gt; co Author
                                      [contactProject] =&gt; 1858
                                      [contactBrand] =&gt; B
                                  )
  
                              [5] =&gt; Array
                                  (
                                      [contactRole] =&gt; Author
                                      [contactProject] =&gt; 12
                                      [contactBrand] =&gt; J
                                  )
  
                              [6] =&gt; Array
                                  (
                                      [contactRole] =&gt; Editor
                                      [contactProject] =&gt; 176
                                      [contactBrand] =&gt; B
                                  )
  
                          )
  
                  )
  
              [1] =&gt; Array
                  (
                      [email] =&gt; Array
                          (
                              [email] =&gt; xxxxxxx@hotmail.com
                              [valid] =&gt; 1
                              [reason] =&gt; 
                              [confirmed_at] =&gt; 0000-00-00 00:00:00
                              [contact_email] =&gt; 0
                              [login_email] =&gt; 0
                              [users_id] =&gt; 6375
                          )
  
                      [history] =&gt; Array
                          (
                          )
  
                  )
  
          )
  
  )
  </code></pre>