I'm trying to put json data into the codeigniter-restserver response, but the json code is put into double quotes effectively rendering it unreadable. I'm trying to set the response like this currently:
$this->response(array(
'status' => $result['success'],
'error' => $result['cause'],
'result' => $result['result']
), $result['statuscode']);
Where $result['result']
is the json code.