18 #include <QJsonDocument> 58 QByteArray array (json.toStdString().c_str());
59 QJsonDocument doc = QJsonDocument::fromJson(array);
60 QJsonObject jsonObject = doc.object();
76 QJsonDocument doc(*obj);
77 QByteArray bytes = doc.toJson();
79 return QString(bytes);
84 QJsonObject* obj =
new QJsonObject();
92 QList<SWGSampleRate*>*
105 bool isObjectUpdated =
false;
107 if(
sample_rates->size() > 0){ isObjectUpdated =
true;
break;}
109 return isObjectUpdated;
QList< SWGSampleRate * > * sample_rates
virtual SWGPerseusReport * fromJson(QString &jsonString) override
void setSampleRates(QList< SWGSampleRate *> *sample_rates)
virtual void fromJsonObject(QJsonObject &json) override
QList< SWGSampleRate * > * getSampleRates()
virtual bool isSet() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override
bool m_sample_rates_isSet
virtual ~SWGPerseusReport()