8000 spath syntax is not proper · Issue #552 · teragrep/pth_10 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

spath syntax is not proper #552

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

Open
kortemik opened this issue Mar 26, 2025 · 0 comments
Open

spath syntax is not proper #552

kortemik opened this issue Mar 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kortemik
Copy link
Member

Describe the bug
spath is not working as intended.

  • it expects array references to start from 1, not 0.
  • array reference 0 gives npe
  • it expects array references to be done with brackets not curly braces
  • auto extraction does not do recursive extraction

Expected behavior

  • array references start from 0
  • array out of bounds references do not throw npe
  • spath uses curly braces to reference to array elements
  • auto extraction is recursive

How to reproduce

spath path="n.m.o.p.q.r[0]"

-> npe

Screenshots

Software version

Desktop (please complete the following information if relevant):

  • OS:
  • Browser:
  • Version:

Additional context
please process spath expression in pth_03 instead of in pth_10

@kortemik kortemik added the bug Something isn't working label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0