/*! Returns \c true if the document contains an object. \sa object(), isArray() */ bool QJsonDocument::isObject() const { if (!d) return false; QJsonPrivate::Header *h = (QJsonPrivate::Header *)d->rawData; return h->root()->isObject(); }
/*! Returns true if the document contains an array. \sa array(), isObject() */ bool QJsonDocument::isArray() const { if (!d) { return false; } QJsonPrivate::Header *h = (QJsonPrivate::Header *)d->rawData; return h->root()->isArray(); }