How to parse the response array in json in java script?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4935632/how-to-parse-json-in-javascript">How to parse JSON in JavaScript</a>  </p>
</blockquote>



<p>Hi I have to parse the following response using AJAX.I have been trying it but I didnt get.</p>

<pre><code>[{"Status":"True"},{"Data":[{"ApplicationNo":"RE09","ApplicationName":"Salim"},{"ApplicationNo":"RE13","ApplicationName":"V Damodaran"}]}]

 &lt;script type="text/javascript"&gt;

     $(document).ready(function () {
         $("#btnlogin").click(function (e) {
             e.preventDefault();
              var txtUsernameID = $("input#useridtxt").val();
             var txtPasswordID = $("input#pwdtxt").val(); 
             alert(txtUsernameID+","+txtPasswordID);

             $.ajax({
                 type: 'POST',
                 //data: '{"username":"' + $("input#txtusername").val() + '","password":"' + $("input#txtpassword").val() + '"}',
                 url: '',
                 contentType: 'application/json; charset=utf-8',
                 dataType: 'json',

                 success:
              function (url, textStatus, XMLHttpRequest) {




                 $.each(url.Data, function(index, item) {
                    alert(item.agentid);

                });         



                 },
                 error:
              function (XMLHttpRequest, textStatus, errorThrown) {
                  alert(textStatus);
              }

             });

         });
     });


&lt;/script&gt;
</code></pre>
