simdjson_key_count
(PECL simdjson >= 2.0.0)
Returns the value at a JSON pointer.
Description
Count the number of elements of the object/array found at the requested JSON pointer.
Parameters
jsonThe
jsonstringbeing queried.keyThe JSON pointer
string.depthMaximum nesting depth of the structure being validated. The value must be greater than
0, and less than or equal to2147483647. Callers should use reasonably small values, because larger depths require more buffer space and will increase the recursion depth, unlike the currentjson_decode()implementation.throw_if_uncountableWhen true, a
SimdJsonExceptionwill be thrown instead of returning 0 when the value the JSON pointer points to is neither an object nor an array.
Return Values
Returns an Integer with the number of elements of the value at the given JSON pointer.