PHP JSON_ENCODE sin corchetes

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

or 


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