Skip to content

Commit 835b16d

Browse files
authored
1 parent 61b32cf commit 835b16d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

parser.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,13 @@ func EachKey(data []byte, cb func(int, []byte, ValueType, error), paths ...[]str
539539
pathFlags[pi] = true
540540

541541
if of != -1 {
542-
v, dt, _, e := Get(value[of:])
543-
cb(pi, v, dt, e)
542+
if dataType == String {
543+
// the double-quotes were stripped, so we cannot call Get again.
544+
cb(pi, value[of:], dataType, nil)
545+
} else {
546+
v, dt, _, e := Get(value[of:])
547+
cb(pi, v, dt, e)
548+
}
544549
}
545550
}
546551
}

0 commit comments

Comments
 (0)