Fetching data from JSON.parse array
I am stuck in this problem, I am calling a webService that returns me a json response. now i want to fetch a particular value from that response but after searching on internet and struggling a lot couldn't fix it. here is my code: var xhr = Titanium.Network.createHTTPClient({ onload : function(e) { Ti.API.info("Received text: " + this.responseText); alert('success'); }, // function called when an error occurs, including a timeout onerror : function(e) { Ti.API.debug(e.error); alert('error'); }, timeout : 5000 }); var data = {"data":"system.connect"}; xhr.open("POST","http://mytesturl.net