18 #include <QJsonDocument> 62 QByteArray array (json.toStdString().c_str());
63 QJsonDocument doc = QJsonDocument::fromJson(array);
64 QJsonObject jsonObject = doc.object();
84 QJsonDocument doc(*obj);
85 QByteArray bytes = doc.toJson();
87 return QString(bytes);
92 QJsonObject* obj =
new QJsonObject();
94 obj->insert(
"min", QJsonValue(
min));
97 obj->insert(
"max", QJsonValue(
max));
100 obj->insert(
"step", QJsonValue(
step));
139 bool isObjectUpdated =
false;
145 return isObjectUpdated;
virtual void fromJsonObject(QJsonObject &json) override
void setStep(qint32 step)
virtual QJsonObject * asJsonObject() override
virtual SWGRange * fromJson(QString &jsonString) override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual QString asJson() override
virtual bool isSet() override