Skip to content

Commit a5e2f25

Browse files
committed
forgot start/end quotation marks
1 parent 656593a commit a5e2f25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parser.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ func parseObject(s string, c *cache, depth int) (*Value, string, error) {
267267
}
268268

269269
func escapeString(dst []byte, s string) []byte {
270+
dst = append(dst, 34)
270271
for i := 0; i < len(s); i++ {
271272
c := s[i]
272273
switch {
@@ -295,6 +296,7 @@ func escapeString(dst []byte, s string) []byte {
295296
dst = append(dst, []byte{92, 117, 48, 49, 71 + c, 48}...)
296297
}
297298
}
299+
dst = append(dst, 34)
298300
return dst
299301
}
300302

0 commit comments

Comments
 (0)