php json_encode tanpa tanda kurung persegi

$withoutbrackets = trim($yourJson, '[]');

or 


$object = json_encode($array, JSON_FORCE_OBJECT);
Wandering Wolverine