How this tool computes its result
JSONPath mode parses the input with `JSON.parse` and evaluates the expression with the `jsonpath-plus` library's `JSONPath({ path, json })`, returning an array of matches. XPath mode parses the input as XML with the browser's `DOMParser` (throwing "Invalid XML input." if a `parsererror` node appears), then runs `document.evaluate(expression, doc, null, XPathResult.ANY_TYPE, null)`. Depending on the result type returned by the browser, it pushes a single number, string, or boolean, or iterates node results with `iterateNext()` collecting each node's `textContent`.
