Loop through a json array: Read first line and loop from the second line
<p>With an array like mine below, how can I read the values of only the first line and the loop through the other from the second line onward? I've included comments in the code to give you an idea of what I'm trying to achieve.</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
&lt;title&gt;PHP, jQuery search demo&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="my.css"&gt;
&lt;script type="text/javascript" src="http://localhost/dev/ajax/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(function() {

    $(".errCheck").click(function() {
             $.ajax({
                type: "GET",
                url:  "test_errors.php",
                dataType:"json",
                cache:false,

                success: function(data){
                //if 1st line of array: success == True How can I do this?
                //Redirect
                //else
                $('#errors div').empty();
                $.each(data, function (loc, msg) {//start from the second array value, in this case errOne
                $(loc).html(msg);
                });              

              },

            });    

        return false;
    });
});
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;div id="container"&gt;
&lt;div id="errors"&gt;
&lt;div id="errOne"&gt;&lt;/div&gt;
&lt;div id="errTwo"&gt;&lt;/div&gt;
&lt;div id="errThree"&gt;&lt;/div&gt;
&lt;/div&gt; 
&lt;input type="submit" class="errCheck" value="Check"&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>My test error messages file:</p>

<pre><code>&lt;?php

$errors['success'] = "false";
$errors['#errOne'] = "Enter a valid username";
$errors['#errTwo'] = "Enter a valid email";
$errors['#errThree'] = "Enter a valid password";

echo json_encode($errors);

?&gt;
</code></pre>
