JsonPath constructor

JsonPath(
  1. String expression
)

Creates an instance from a string. The expression is parsed once, and the instance may be used many times after that.

Throws FormatException if the expression can not be parsed.

Implementation

factory JsonPath(String expression) => JsonPathParser().parse(expression);