Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegEx filter deletes attributes #76

Open
pmias opened this issue Sep 6, 2024 · 0 comments
Open

RegEx filter deletes attributes #76

pmias opened this issue Sep 6, 2024 · 0 comments

Comments

@pmias
Copy link

pmias commented Sep 6, 2024

This project uses a JSONPath-Plus as a jsonpath parser. For the parser issues, please report to the JSONPath repository.

Describe the bug
When filtering on an attribute with RegEx, the attribute gets deleted in result.

To Reproduce
Steps to reproduce the behavior:
JSON: { "foo": [ { "bar": "A" }, { "bar": "B" } ] }

JSONPath: $.foo[?(@.bar =~ /A/)].bar

Expected behavior
Expected Result: [ "A" ]

Screenshots
Actual Result: [ -1, -1 ]

Environment (please complete the following information):
Latest Docker Image v2.0.3, Firefox 129.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant