title: SyntaxError: Unexpected token o in JSON at position 1
body: <p>I'm parsing some data using a type class in my controller. I'm getting data as follows:</p>
  <pre><code>{  
     &quot;data&quot;:{  
        &quot;userList&quot;:[  
           {  
              &quot;id&quot;:1,
              &quot;name&quot;:&quot;soni&quot;
           }
        ]
     },
     &quot;status&quot;:200,
     &quot;config&quot;:{  
        &quot;method&quot;:&quot;POST&quot;,
        &quot;transformRequest&quot;:[  
           null
        ],
        &quot;transformResponse&quot;:[  
           null
        ],
        &quot;url&quot;:&quot;/home/main/module/userlist&quot;,
        &quot;headers&quot;:{  
           &quot;rt&quot;:&quot;ajax&quot;,
           &quot;Tenant&quot;:&quot;Id:null&quot;,
           &quot;Access-Handler&quot;:&quot;Authorization:null&quot;,
           &quot;Accept&quot;:&quot;application/json, text/plain, */*&quot;
        }
     },
     &quot;statusText&quot;:&quot;OK&quot;
  }
  </code></pre>
  <p>I tried to store the data like this</p>
  <pre><code>var userData = _data;
  var newData = JSON.parse(userData).data.userList;
  </code></pre>
  <p>How can I extract the user list to a new variable?</p>