This gist shows how to use the basic search function of DefiantJS. On the left a textbox allows to write and apply XPath expression on the JSON data structure shown on the right (HighlightJS has been used for JSON highlighting). The result of valid XPath expression is shown on the left under the textbox.
Some examples of possible XPath expressions:
//children
//children[name="cluster"]
//children[name="cluster"]/children
//children[name="cluster"]/children/value