title: How do I get the total Json record count using JQuery?
body: <p>I couldn't find anything about getting the total JSON record count using jQuery.</p>
  
  <p>Here is the JSON returned:</p>
  
  <p><code>{"Email":"Please enter your Email.","Password":"Please enter a password."}</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>$(function() {
      $("#btnSubmit").click(function() {
          $.ajax({
              url: "/account/signup",
              type: "POST",
              dataType: "json",
              data: { 
                  Email: $("#strEmail").val(),
                  Password: $("#strPassword").val()
              },
              success: function(j) {
                      $(".errMsg").hide();
                      alert(j.length); // I couldn't get the total count
                  $.each(j, function(n) {
                      $("#err" + n).html(j[n]);
                      $("#err" + n).show();
                  })
  
              },
              error: function(req, status, error) {
                  alert(req);
              }
          });
      });
  });
  </code></pre>