Replying to myself now sorry.
How does this look?
var JSONobject = JSON.decode('['+response+']');
console.log(JSONobject);
JSONobject.each(function(els){
$each(els, function(value, key){
console.log( key + ': ' +
value.isEmpty );
});
});
this outputs the following:
password: Value is required and can't be empty
passwordconfirm: Value is required and can't be empty
costrate: Value is required and can't be empty
firstname: Value is required and can't be empty
lastname: Value is required and can't be empty
username: Value is required and can't be empty
officenumber: Value is required and can't be empty
email: Value is required and can't be empty
Now, what if I don't know what my key is? Anyway to grab that
automatically? would it be value.key or something like that? The key
won't always be isEmpty.