I am trying to evaluate some json that my ajax request is returning, using the following:
new Ajax.Request("GetExpenses",
{method: 'get',
parameters: {'period': 'all'},
onSuccess: function(transport) {
var json = transport.responseText.evalJSON();
}});
What method calls are available on the json object returned by the evalJSON() method? Is it an array of objects? How do I parse it to get the values?