How to get a count back for my json?
<p>I have a response coming back from my server that looks like this</p>

<pre><code>{"Errors":{"ViewModels[0]":"Not a valid number."},"IsValid":false,"SuccessMessage":null}
</code></pre>

<p>I want to loop through all the values contrained in Errors(in this case there is only one but there could many).</p>

<p>I tried</p>

<pre><code>   function createErrorList(response)
    {
        for (var i = 0; i &lt; response.Errors.length; i++)
        {
            var error = response.Errors[i];
            alert(error);
        }
    }
</code></pre>

<p>length is alwasy undefined though. So I am not sure what I am doing wrong.</p>
