Using this code :-
$outputArray = array(
"iTotalRecords" => 1,
"aaData" => array());
$row1 = array("Fred","10th", "1", "New");
$outputArray["aaData"][] = $row1;
$output = json_encode($outputArray);
echo $output;
As a standalone script I get :-
{"iTotalRecords":1,"aaData":[["Fred","10th","1","New"]]}
which is correct.
From a snippet in a Revo 2.2.4(linux) install I get :-
{"iTotalRecords":1,"aaData":}
which is wrong. Thinking its the server environment somehow I tried it in a Revo 2.2.0 install on a Windows box, output is as above, ie wrong. I've also tried this with the Zend Json class in the snippet rather than json_encode, still wrong.
What gives, has anyone else seen this behaviour. Note that using associated keys ie 'Name=>Fred' works in the snippet.