I've the following array in a $arrayResult:
array (size=1)
'Records' =>
array (size=1498)
0 =>
array (size=4)
'code' => string '9999999' (length=12)
'nome' => string 'XXXXXXXXX' (length=39)
'contrato' => string '67971' (length=5)
'status' => string 'A' (length=1)
1 =>
array (size=4)
'code' => string '777777777' (length=12)
'nome' => string 'WWwwwwwww' (length=40)
'contrato' => string '67725' (length=5)
'status' => string 'C' (length=1)
.... (other results with the same pattern)
$resultArray = $view->getAllAccounts();
$final['Records'] = $resultArray;
echo json_encode($final, true);
when I get the array and use the json_encode nothing happens.