As Response from the server i get:
{"vorname":["muss ausgefüllt werden"],"name":["muss ausgefüllt werden"]}
So what i do with this Json Array xhr.responseText is this:
$.each(jQuery.parseJSON(xhr.responseText), function( i, val ) {
console.log(val[0]);
});
Normally i would expect this output:
vorname
name
But i get:
muss ausgefüllt werden
muss ausgefüllt werden
Why? And how do i fix it? Thanks
inotval