aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-02-23 06:29:02 +0100
committergrunfink <grunfink@comam.es>2026-02-23 06:29:02 +0100
commit57355092e983886f6ad064b81ae07a6e718f5938 (patch)
treee03cd485c4dc379ceab2ca6442133a3a8a6f957f
parent4584076dd38f57ab71a18aac9afe6265753bd0e6 (diff)
More JSON parser fixes.
-rw-r--r--xs_json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xs_json.h b/xs_json.h
index 85f0852..b89f7f8 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -256,6 +256,7 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t)
case 'r': cp = '\r'; break;
case 't': cp = '\t'; break;
case '"': cp = '"'; break;
+ case '\\': cp = '\\'; break;
case 'u': /* Unicode codepoint as an hex char */
if (fscanf(f, "%04x", &cp) != 1) {
*t = JS_ERROR;