Titanium SDK version: 1.6.1
iPhone SDK version: 4.2
I get this response back from the API I am consuming and I want a popup to show up on each error. For example: Desc can't be blank. I am using JavaScript.
This is the output in JSON.
{"desc":"can't be blank","value_1":"can't be blank"}
I tried this but it outputs every character, one by one.
for (var thekey = 0; thekey < response.length; thekey++) {
alert(response[thekey]);
};
How can I output the errors?