18 #include <QJsonDocument> 52 QByteArray array (json.toStdString().c_str());
53 QJsonDocument doc = QJsonDocument::fromJson(array);
54 QJsonObject jsonObject = doc.object();
70 QJsonDocument doc(*obj);
71 QByteArray bytes = doc.toJson();
73 return QString(bytes);
78 QJsonObject* obj =
new QJsonObject();
80 obj->insert(
"gainCB", QJsonValue(
gain_cb));
99 bool isObjectUpdated =
false;
103 return isObjectUpdated;
virtual QJsonObject * asJsonObject() override
virtual SWGGain * fromJson(QString &jsonString) override
void setGainCb(qint32 gain_cb)
virtual void fromJsonObject(QJsonObject &json) override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual QString asJson() override
virtual bool isSet() override