Refactor to use JSONPath-style search

Pass a $path in the form of key1.key1...keyN to search multi-dimensional JSON arrays
like those returned via the API.