/json-xpath

Query JSON objects with XPath 2.0

Primary LanguageJavaScript

json-xpath

Query JSON objects with XPath 2.0

<script type="text/javascript" src="json.xpath.js"></script>

API

(array) JSON.xpath(expression[, context[, scope]])

Here: expression is the XPath 2.0 query string, context - JSON object to be evaluated, scope - hash object with variables to be exposed to evaluation engine at runtime.