Purpose
The ExistValue method determines if a name represented by a JSONPath-formatted string exists in a JSON instance.
Syntax
Syntax Elements
- JSON_expr
- An expression that evaluates to a JSON data type.
- JSONPath_expr
- A name in JSONPath syntax.
Functional Description
ExistValue determines if the name specified by JSONPath_expr exists in the JSON instance specified by JSON_expr.
Return Value
- 1, if the specified name is found at least once in the JSON instance.
- 0, if the name is not found.
- NULL, if the JSON_expr argument is null.