18 #include <QJsonDocument> 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();
145 bool isObjectUpdated =
false;
149 if(
file_path !=
nullptr && *
file_path != QString(
"")){ isObjectUpdated =
true;
break;}
151 return isObjectUpdated;
virtual SWGPresetImport * fromJson(QString &jsonString) override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual bool isSet() override
void setGroupName(QString *group_name)
QString * getDescription()
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual void fromJsonObject(QJsonObject &json) override
virtual ~SWGPresetImport()
void setFilePath(QString *file_path)
void setDescription(QString *description)