php json_encode sans crochets
$withoutbrackets = trim($yourJson, '[]');
or
$object = json_encode($array, JSON_FORCE_OBJECT);
Wandering Wolverine
$withoutbrackets = trim($yourJson, '[]');
or
$object = json_encode($array, JSON_FORCE_OBJECT);