18 #include <QJsonDocument> 54 QByteArray array (json.toStdString().c_str());
55 QJsonDocument doc = QJsonDocument::fromJson(array);
56 QJsonObject jsonObject = doc.object();
72 QJsonDocument doc(*obj);
73 QByteArray bytes = doc.toJson();
75 return QString(bytes);
80 QJsonObject* obj =
new QJsonObject();
101 bool isObjectUpdated =
false;
105 return isObjectUpdated;
virtual bool isSet() override
void setDeviceName(QString *device_name)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
QString * getDeviceName()
virtual void fromJsonObject(QJsonObject &json) override
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual SWGDVSerialDevice * fromJson(QString &jsonString) override
virtual ~SWGDVSerialDevice()