steve_clarke
04/12/2022, 9:47 PM$.link[?(@.relation=='next')].url
it complains with an error
Extract failed (1): jsonpath_ng.exceptions.JsonPathLexerError: Error on line 1, col 7: Unexpected character: ?
From reading up on the error message it seems there is two options for parsing. The option that supports filtering comes from extensions.
This link describes the same issue Example with same issue and solution . The jsonpath_ng documentation also describes the extended parser here.
It suggests the following to use the extended parser.
from jsonpath_ng.ext import parse
Does the jsonpath helper in the SDK need to be changed to support JSON Path filter or do you think there is another issue? P.S. The jonpath expression works okay on jsonpath.com
Thanks Steveedgar_ramirez_mondragon
04/12/2022, 10:49 PMedgar_ramirez_mondragon
04/12/2022, 11:40 PMsteve_clarke
04/13/2022, 4:51 AMedgar_ramirez_mondragon
04/13/2022, 2:46 PMmaybe I could change the TAP to pull in from your branch - do you think that is possible?Yup that's perfectly possible with a git ref pointing to the branch:
poetry add git+<https://gitlab.com/meltano/singer-sdk@361-jsonpath-extensions>
We can also publish a PyPI pre-release from the branchedgar_ramirez_mondragon
04/13/2022, 2:52 PM0.4.5.dev2328572629
steve_clarke
04/13/2022, 8:15 PM