Good article, thanks!
There is similar concept for json https://goessner.net/articles/JsonPath/
We heavily using it for validation error messages. Like
{
"error": "wrong value",
"path": "foo/bar[1]/prop"
}