According to the JSON spec, null is NOT valid array/object

This commit is contained in:
Lekensteyn 2012-02-25 18:22:45 +01:00
parent 67c92852b5
commit a491b59fe8

View file

@ -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;
}