Skip to content

Commit 277c1bf

Browse files
committed
Fix issue #199
1 parent 5754b3e commit 277c1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ func internalGet(data []byte, keys ...string) (value []byte, dataType ValueType,
916916
value = value[1 : len(value)-1]
917917
}
918918

919-
return value, dataType, offset, endOffset, nil
919+
return value[:len(value):len(value)], dataType, offset, endOffset, nil
920920
}
921921

922922
// ArrayEach is used when iterating arrays, accepts a callback function with the same return arguments as `Get`.

0 commit comments

Comments
 (0)