Closed aiceball closed 1 month ago
https://github.com/dlacher1/jsonpath-ng ^^^ this branch has this supported the syntax is $.variable[?(@.parameter ~= 'regex']
@aiceball You should try importing parse
from jsonpath_ng.ext
. If you are still having any issues, feel free to reopen.
I believe that the =~ syntax is something Jayway uses, but was unable to find any json filter regex matching when using jsonpath-ng parse function.
when trying to use variable[?(@.parameter =~ 'regex')] I obtain the following error:
jsonpath_ng.lexer.JsonPathLexerError: Error on line 1, col 63: Unexpected character: ~