Get javascript object from ajax request
<p>How do I create a javascript object from an AJAX response?</p>

<p>This is what I'm currently doing:</p>

<p>PHP:</p>

<pre><code>&lt;?
echo '{status:"1", site:"example.com"}';
?&gt;
</code></pre>

<p>JS:</p>

<pre><code>success:function(data_response){
    var object = eval( data_response );
    console.log(object.url);
    }});
</code></pre>

<p>I'm currently getting "undefined" on the console. How is this done?</p>
