How to handle json response in jquery with multiple arrays
<p>When I handle the response I get using jQuery ajax and if the response comes as </p>

<p>{"id":"11","name":"Steffy"}</p>

<p>I am able to handle it as 
        jQuery.ajax({
        url: form.attr("action"),
        type: "post",
        data: form.serialize(),
        success: function (resp) {
                     var id=resp.id, name=resp.name;
                }</p>

<p>But when I get a response like the below, I am unable to handle. Kindly guide me.</p>

<p>{"one":{"id":"11","name":"Steffy"},"two":{"id":"17","name":"Marc Smith"}}</p>

<p>I tried using resp.one.id but it does not work.
Thanks in advance.</p>