18 #include <QJsonDocument> 59 QByteArray array (json.toStdString().c_str());
60 QJsonDocument doc = QJsonDocument::fromJson(array);
61 QJsonObject jsonObject = doc.object();
79 QJsonDocument doc(*obj);
80 QByteArray bytes = doc.toJson();
82 return QString(bytes);
87 QJsonObject* obj =
new QJsonObject();
92 obj->insert(
"delete", QJsonValue(
_delete));
121 bool isObjectUpdated =
false;
126 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual void fromJsonObject(QJsonObject &json) override
virtual bool isSet() override
void setDelete(qint32 _delete)
virtual SWGAMBEDevice * fromJson(QString &jsonString) override
void setDeviceRef(QString *device_ref)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override