JsonPathFunction Class
Defines a custom filter function that works with any JSONPath navigator.
public abstract class JsonPathFunctionRemarks
Implementations must be thread-safe and should be pure. Exceptions propagate to the caller. Callbacks are not cached; their invocation count is not guaranteed. Do not mutate input nodes.
Constructors
| Name | Description |
|---|---|
| JsonPathFunction(string, JsonPathFunctionType, JsonPathFunctionType[]) | Initializes a function with an immutable RFC 9535 signature. |
JsonPathFunction(string, JsonPathFunctionType, JsonPathFunctionType[])
JsonPathFunction.csInitializes a function with an immutable RFC 9535 signature.
protected JsonPathFunction(string name, JsonPathFunctionType resultType, params JsonPathFunctionType[] parameterTypes)Parameters
namestringresultTypeJsonPathFunctionTypeparameterTypesJsonPathFunctionType[]
Properties
| Name | Description |
|---|---|
| Name | Gets the function name. |
| ParameterTypes | Gets the immutable parameter types. |
| ResultType | Gets the result type. |
ParameterTypes
JsonPathFunction.csGets the immutable parameter types.
public IReadOnlyList<JsonPathFunctionType> ParameterTypes { get; }Property value
ResultType
JsonPathFunction.csMethods
| Name | Description |
|---|---|
| Invoke<TValue>(IReadOnlyList<JsonPathFunctionArgument<TValue>>, JsonPathNavigator<TValue>) | Invokes the function with arguments converted according to its declared signature. |