18 #include <QJsonDocument> 57 QByteArray array (json.toStdString().c_str());
58 QJsonDocument doc = QJsonDocument::fromJson(array);
59 QJsonObject jsonObject = doc.object();
77 QJsonDocument doc(*obj);
78 QByteArray bytes = doc.toJson();
80 return QString(bytes);
85 QJsonObject* obj =
new QJsonObject();
119 bool isObjectUpdated =
false;
124 return isObjectUpdated;
virtual QJsonObject * asJsonObject() override
virtual bool isSet() override
void setSampleRate(qint32 sample_rate)
void setCenterFrequency(qint32 center_frequency)
virtual SWGLocalOutputReport * fromJson(QString &jsonString) override
virtual QString asJson() override
qint32 getCenterFrequency()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual void fromJsonObject(QJsonObject &json) override
virtual ~SWGLocalOutputReport()
bool m_center_frequency_isSet