Appcelerator: Working with JSON

While working with Appcelerator and viewing examples by others, I've noticed that many people seem to find the need to use an eval() statement when parsing their remote JSON data. It works, but it can be done without using the eval() function just to parse the JSON string data. Below is a very basic example showing the use of the parse function built into Titanium.

var loader = Titanium.Network.createHTTPClient();

loader.onload = function(){
    data = JSON.parse(this.responseText);

loader.onerror = function(){
    message:"An error has occurred.\nPlease try again.",
    title:'Connection Error'