According to the JSON spec, null is NOT valid array/object
This commit is contained in:
parent
67c92852b5
commit
a491b59fe8
1 changed files with 2 additions and 2 deletions
|
@ -1312,14 +1312,14 @@ Value::isString() const
|
||||||
bool
|
bool
|
||||||
Value::isArray() const
|
Value::isArray() const
|
||||||
{
|
{
|
||||||
return type_ == nullValue || type_ == arrayValue;
|
return type_ == arrayValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Value::isObject() const
|
Value::isObject() const
|
||||||
{
|
{
|
||||||
return type_ == nullValue || type_ == objectValue;
|
return type_ == objectValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue