php json_encode без квадратных кронштейнов

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

or 


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