leezng / vue-json-pretty

A JSON tree view component that is easy to use and also supports data selection.

Home Page:https://leezng.github.io/vue-json-pretty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Would be nice to have a control over JSON path creation

tpoxa opened this issue · comments

Updated!

I would like to determine the element of the array by its "id" instead of its position number, which may vary in unsorted arrays.

Like in the JsonPath example

book[?(@.author=='J.R.R. Tolkien')].title

instead of

book[0].title

Is that possible to create a new option/or use an existing one to have such control over a path creation? Unfortunately, I am no js developer, but if the team says that such an option is possible, I will try to make a PR for that.

Thank you.