| ... | @@ -138,6 +138,7 @@ fn parseString(alloc: std.mem.Allocator, p: *Parser) anyerror!?StringIndex { | ... | @@ -138,6 +138,7 @@ fn parseString(alloc: std.mem.Allocator, p: *Parser) anyerror!?StringIndex { |
| 138 | break; | 138 | break; |
| 139 | } | 139 | } |
| 140 | if (c != '\\') { | 140 | if (c != '\\') { |
| | 141 | if (c < 0x20) return error.JsonExpectedTODO; |
| 141 | const l = std.unicode.utf8CodepointSequenceLength(c) catch unreachable; | 142 | const l = std.unicode.utf8CodepointSequenceLength(c) catch unreachable; |
| 142 | const b = p.temp.items[p.idx - l ..][0..l]; | 143 | const b = p.temp.items[p.idx - l ..][0..l]; |
| 143 | try characters.appendSlice(b); | 144 | try characters.appendSlice(b); |