18 #include <QJsonDocument> 45 key =
new QString(
"");
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();
99 if(
key !=
nullptr && *
key != QString(
"")){
145 bool isObjectUpdated =
false;
147 if(
key !=
nullptr && *
key != QString(
"")){ isObjectUpdated =
true;
break;}
151 return isObjectUpdated;
virtual QJsonObject * asJsonObject() override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual bool isSet() override
virtual void fromJsonObject(QJsonObject &json) override
bool m_value_string_isSet
void setValueString(QString *value_string)
QString * getValueString()
virtual SWGArgValue * fromJson(QString &jsonString) override
virtual QString asJson() override
void setValueType(QString *value_type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setKey(QString *key)