PHP JSON_ENCODE Ohne Quadratklammern

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

or 


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