From 637dfa66c2bdf707f03e22c8fb86dab7734e1645 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 27 Nov 2024 21:33:20 +0300 Subject: [PATCH] add 'null' support to json parser --- src/coders/json.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coders/json.cpp b/src/coders/json.cpp index f6b27f51..8164371b 100644 --- a/src/coders/json.cpp +++ b/src/coders/json.cpp @@ -241,6 +241,8 @@ dv::value Parser::parseValue() { return INFINITY; } else if (literal == "nan") { return NAN; + } else if (literal == "null") { + return nullptr; } throw error("invalid keyword " + literal); }