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

Need convenience functions to aid in usage, development #17

Open
pprindeville opened this issue Aug 4, 2024 · 1 comment
Open

Need convenience functions to aid in usage, development #17

pprindeville opened this issue Aug 4, 2024 · 1 comment

Comments

@pprindeville
Copy link
Member

pprindeville commented Aug 4, 2024

The following functions would be useful:

  • getting the cursor position into a variable
  • setting the cursor position from a variable
  • getting the parent position into a variable
  • getting the path of the current cursor
  • getting the name of the current node
  • add anonymous strings to arrays
  • get the index of an entry being added to an array

JSON isn't necessarily generated in a linear fashion per the source information being parsed to synthesize it. Therefore, being able to randomly access placekeepers in the tree would be useful. Note: it's not clear how to address unnamed objects.

@pprindeville
Copy link
Member Author

Also note that the error message generated by json_select goes to stdout and not stderr.

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