return $this->response->withType("application/json") cakephp3 code example
Example: return $this->response->withType("application/json")->withStringBody(json_encode($result));
return $this->response->withType("application/json")->withStringBody(json_encode($result));
pure array