XPath 1.0 is a language designed for XML. The following is online tester for JSON.
Since JSON is slightly diifferent than XML, some XPath constructs are not supported (for example @). If you view JSON as an encoding of a hierachical data base, then XPath can be viewed as a data base query language. This is the approach that has been used in the XML based configuration protocol NETCONF.
XPath 1.0 js source code can be found here. json-xpath
XPath 1.0 C++ source code can be found here. jstr