News for hackers. Stuff that matters.
Re:Show HN: Jqview, a simple native GUI for inspecting JSON ... by originalvichy on Monday June 08, 2020 @06:06AM (#23455219)
If I was to click on the part that saus ’”b”:2’, could you show me the jq query I could use to get just that part of the json file?

Kind of similar to how some Git extensions show who has the last commit on a certain line of code when you click/place cursor on a line

Re:Show HN: Jqview, a simple native GUI for inspecting JSON ... by ldd on Tuesday June 09, 2020 @03:00PM (#23469609)
Gotcha. I'd honestly also would want this, but I don't see an easy way of implementing it.

It sort of makes me wonder how xpath queries work and what algorithms are used.

At face value, for certain JSON files, it is probably possible to do quickly, like in my example above, but the devil is always in the details...