Visualize an artificial json response, here's the string representation of this JSON...
[{"A":"1","B":{"name":"joe","lastname":"jones"},"COLORS:{"red":"rojo","blue":"azul"},"active":"yes"}]
I am aiming to extract the name "joe" using the following code snippet: in JAVASCRIPT for an iOS application!!!
var json = this.responseText;
var response = JSON.parse(json);
alert("hi " + response.B.name);
//the expected output is " hi joe"!!
An issue arises as there is no response.... the alert remains empty... any suggestions or guidance would be greatly appreciated
rupGo