Laravel.io
//Controller

$results = $this->zonesRepo->getFilteredList($type);
return $results->toJson();

//Result is:

//[{"id":44,"name":"Urola kosta"},{"id":48,"name":"Urola"}]

//I need to have a result like this:

//[{id:44,name:"Urola kosta"},{id:48,name:"Urola"}]  <--- Note that the keys not have double quottes

Please note that all pasted data is publicly available.