I have a variable with some data (key/value):
var errors = JSON.parse(xhr.responseText);
Here is the content:
{
"vehicle.Model":"Le champ Model est requis.",
"vehicle.Brand":"Le champ Brand est requis.",
"vehicle.Registration":"Le champ Registration est requis."
}
I would like to loop into it and display the key and the value for each.
How to proceed?
Thanks.