XPath for JSON? Who would have thought of that! Now add namespaces and you reinvented XML 10 years later
[1] https://parasol.tamu.edu/pivot/ [2] http://ubietylab.net
You wouldn't make that same comparison with regular expressions(tool) and a text document(data) would you? As in, the tool is not part and parcel of the data.
XPath(and JSONPath) are powerful tools for programatically pulling data from complex data structures.
http://augeas.net/