return $this->response->withType("application/json")->withStringBody(json_encode($result)); pure array