18 #include <QJsonDocument> 68 QByteArray array (json.toStdString().c_str());
69 QJsonDocument doc = QJsonDocument::fromJson(array);
70 QJsonObject jsonObject = doc.object();
90 QJsonDocument doc(*obj);
91 QByteArray bytes = doc.toJson();
93 return QString(bytes);
98 QJsonObject* obj =
new QJsonObject();
132 QList<SWGDeviceSet*>*
145 bool isObjectUpdated =
false;
149 if(
device_sets->size() > 0){ isObjectUpdated =
true;
break;}
151 return isObjectUpdated;
qint32 getDevicesetcount()
virtual bool isSet() override
bool m_devicesetcount_isSet
QList< SWGDeviceSet * > * getDeviceSets()
virtual QString asJson() override
qint32 getDevicesetfocus()
QList< SWGDeviceSet * > * device_sets
virtual ~SWGDeviceSetList()
bool m_devicesetfocus_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual QJsonObject * asJsonObject() override
void setDevicesetcount(qint32 devicesetcount)
virtual void fromJsonObject(QJsonObject &json) override
void setDevicesetfocus(qint32 devicesetfocus)
void setDeviceSets(QList< SWGDeviceSet *> *device_sets)
virtual SWGDeviceSetList * fromJson(QString &jsonString) override