18 #include <QJsonDocument> 61 QByteArray array (json.toStdString().c_str());
62 QJsonDocument doc = QJsonDocument::fromJson(array);
63 QJsonObject jsonObject = doc.object();
81 QJsonDocument doc(*obj);
82 QByteArray bytes = doc.toJson();
84 return QString(bytes);
89 QJsonObject* obj =
new QJsonObject();
123 bool isObjectUpdated =
false;
125 if(
file_path !=
nullptr && *
file_path != QString(
"")){ isObjectUpdated =
true;
break;}
128 return isObjectUpdated;
virtual ~SWGPresetExport()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override
virtual bool isSet() override
SWGPresetIdentifier * getPreset()
SWGPresetIdentifier * preset
virtual void fromJsonObject(QJsonObject &json) override
void setPreset(SWGPresetIdentifier *preset)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual SWGPresetExport * fromJson(QString &jsonString) override
void setFilePath(QString *file_path)
virtual bool isSet() override