18 #include <QJsonDocument> 67 QByteArray array (json.toStdString().c_str());
68 QJsonDocument doc = QJsonDocument::fromJson(array);
69 QJsonObject jsonObject = doc.object();
91 QJsonDocument doc(*obj);
92 QByteArray bytes = doc.toJson();
94 return QString(bytes);
99 QJsonObject* obj =
new QJsonObject();
104 obj->insert(
"squelch", QJsonValue(
squelch));
159 bool isObjectUpdated =
false;
166 return isObjectUpdated;
virtual SWGSSBDemodReport * fromJson(QString &jsonString) override
qint32 getChannelSampleRate()
virtual bool isSet() override
void setAudioSampleRate(qint32 audio_sample_rate)
qint32 channel_sample_rate
virtual QString asJson() override
virtual ~SWGSSBDemodReport()
void setSquelch(qint32 squelch)
qint32 getAudioSampleRate()
bool m_channel_power_db_isSet
virtual QJsonObject * asJsonObject() override
void setChannelSampleRate(qint32 channel_sample_rate)
float getChannelPowerDb()
bool m_channel_sample_rate_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_audio_sample_rate_isSet
virtual void fromJsonObject(QJsonObject &json) override
void setChannelPowerDb(float channel_power_db)