openwrt/libubox

Need convenience functions to aid in usage, development

Opened this issue · 1 comments

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.

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