// data array containing the info you want to convert to json $data = array( 'field1' = 'data1', 'field2' = 'data2' ); $this->response->body = \Format::factory($data)->to_json();
It looks like you're new here. If you want to get involved, click one of these buttons!