$json = json_encode([0]);
var_dump($json);
----
string(3) "[0]"
it is a string, but it is [0]