Package io.trino.json

Class JsonPathEvaluator

java.lang.Object
io.trino.json.JsonPathEvaluator

public class JsonPathEvaluator extends Object
Evaluates the JSON path expression using given JSON input and parameters, respecting the path mode `strict` or `lax`. Successful evaluation results in a sequence of objects. Each object in the sequence is either a `JsonNode` or a `TypedValue` Certain error conditions might be suppressed in `lax` mode. Any unsuppressed error condition causes evaluation failure. In such case, `PathEvaluationError` is thrown.