From a491b59fe8fd3a08230ca529dc781e775296d7ae Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Sat, 25 Feb 2012 18:22:45 +0100 Subject: [PATCH] According to the JSON spec, null is NOT valid array/object --- util/json/json_value.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/json/json_value.cpp b/util/json/json_value.cpp index f418af26..21996f4a 100644 --- a/util/json/json_value.cpp +++ b/util/json/json_value.cpp @@ -1312,14 +1312,14 @@ Value::isString() const bool Value::isArray() const { - return type_ == nullValue || type_ == arrayValue; + return type_ == arrayValue; } bool Value::isObject() const { - return type_ == nullValue || type_ == objectValue; + return type_ == objectValue; }