aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'json.c')
-rw-r--r--json.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/json.c b/json.c
index 736dd34..dc1ac67 100644
--- a/json.c
+++ b/json.c
@@ -213,6 +213,11 @@ parse_any_result parse_any(Arena *a, byte *src, uptr start_pos) {
result.value->boolean = new(a, i32, 1);
*result.value->boolean = 0;
result.pos = start_pos + 5;
+ } else if (memcmp(src + result.pos, "null", 4) == 0) {
+ result.value->null = new(a, i32, 1);
+ result.pos = start_pos + 4;
+ } else {
+ assert(false);
}
return result;