With jq one can query data in JSON files from the command line, what is useful for example when writing bash scripts, which just need one entry from a JSON file, like this
jq '.[0] | {message: .commit.message, name: .commit.committer.name}'
(Example taken from the tutorial)
I wonder if there are similar tools for HTML, which may for example accept an XPath or CSS selector as query and return the matching element(s).