javascript - How to get a count back for my json? -


I have a response from my server that looks like this

  { "Errors": "{{ViewModels [0]": "Not a valid number."}, "IsValid": wrong, "successful message": null}   

Looping through is worried about errors (in this case there is only one, but many people are).

I tried

  function texture (response) {for (var i = 0; i & lt; response.Errors.length; i ++) {var error = Reaction. Astrar [i]; Warning (error); }}   

The length is temporarily undefined though. So I'm not sure what I'm doing.

 for  var error errors in response (warning (error. Errors [error] ); }   

If you are crazy about the prototype on the object object, you may also want to include the EvenOnProperty.

Comments