simdjson_key_exists
simdjson_key_exists
Check if the JSON contains the value referred to by a JSON pointer.
bool **simdjson_key_exists** string $json string $key int $depth
Count the number of elements of the object/array found at the requested JSON pointer.
json
The being queried.
json``string
key
The JSON pointer .
string
depth
Maximum nesting depth of the structure being validated.
The value must be greater than ,
and less than or equal to .
Callers should use reasonably small values,
because larger depths require more buffer space and will
increase the recursion depth, unlike the current implementation.
`0``2147483647``json_decode`
throw_if_uncountable
When true, a will be thrown
instead of returning 0 when the value the JSON pointer points to
is neither an object nor an array.
SimdJsonException
Returns true if the JSON pointer is valid and refers to a value found within a valid JSON string. Returns false if the JSON is valid but does not contain the JSON pointer.