How to parse json response from ajax? <p>I am new to json and ajax this is my first example can any one help me out with this.</p> <pre><code>$.ajax({ type: "GET", url: "ajs/index", dataType: "JSON", success: function(data) { var obj = JSON.parse(data); $("#result").html(obj.name); } }); </code></pre> <p>The output of data is of the form:</p> <pre><code>[Object {id=10, name="ss", title="ss", content="h", ...}, Object {id=12, name="lo", title="gi", content="c", ...}, Object {id=13, name="lo", title="gi", content="c", ...}, Object {id=14, name="lo", title="gi", content="c", ...}, Object {id=15, name="n", title="m", content="m", ...}] </code></pre> <p>The output of obj(after parsing) is of the form:</p> <pre><code>[{"id":10,"name":"ss","title":"ss","content":"h","created_at":"2014-07-07T10:07:02.398Z","updated_at":"2014-07-07T10:07:02.398Z"}]{"id":12,"name":"lo","title":"gi","content":"c","created_at":"2014-07-08T05:26:05.816Z","updated_at":"2014-07-08T05:26:05.816Z"} </code></pre> <p>when i use <strong>obj.name</strong> it is nt displaying any data how can i display all my data.</p>