We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40b56a1 commit 817f639Copy full SHA for 817f639
1 file changed
parser.go
@@ -50,6 +50,9 @@ func findTokenStart(data []byte, token byte) int {
50
51
func findKeyStart(data []byte, key string) (int, error) {
52
i := nextToken(data)
53
+ if i == -1 {
54
+ return i, KeyPathNotFoundError
55
+ }
56
ln := len(data)
57
if ln > 0 && (data[i] == '{' || data[i] == '[') {
58
i += 1
0 commit comments