vue-json-pretty icon indicating copy to clipboard operation
vue-json-pretty copied to clipboard

Would be nice to have a control on a path creation

Open tpoxa opened this issue 2 years ago • 0 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.

tpoxa avatar Oct 28 '22 12:10 tpoxa