(PECL simdjson >= 2.0.0)
simdjson_key_count — Returns the value at a JSON pointer.
$json,$key,$depth = 512,$throw_if_uncountable = falseCount the number of elements of the object/array found at the requested JSON pointer.
jsonjson string being queried.
keydepth0,
and less than or equal to 2147483647.
Callers should use reasonably small values,
because larger depths require more buffer space and will
increase the recursion depth, unlike the current json_decode() implementation.
throw_if_uncountableReturns an int with the number of elements of the value at the given JSON pointer.