Parse JSON as structure #365

This commit is contained in:
Alex Fabijanic
2014-03-07 20:45:32 -06:00
parent 60e0b3f9d6
commit e3d7fc104e
2 changed files with 20 additions and 16 deletions

View File

@@ -788,7 +788,11 @@ inline bool Var::isEmpty() const
inline bool Var::isArray() const
{
return !isEmpty() && !isString();
if (isEmpty() ||
isString()) return false;
VarHolder* pHolder = content();
return pHolder ? pHolder->isArray() : false;
}