in hop.go [51:61]
func Test(json []byte, path string) (ok bool) {
// Quick, cheap smoke test first:
last := strings.LastIndexByte(path, delimiter) + 1
if !bytes.Contains(json, []byte(path[last:])) {
return false
}
// Otherwise use the easyjson lexer:
in := jlexer.Lexer{Data: json}
return test(&in, path, 0)
}