18 #include <QJsonDocument> 166 QByteArray array (json.toStdString().c_str());
167 QJsonDocument doc = QJsonDocument::fromJson(array);
168 QJsonObject jsonObject = doc.object();
228 QJsonDocument doc(*obj);
229 QByteArray bytes = doc.toJson();
231 return QString(bytes);
236 QJsonObject* obj =
new QJsonObject();
247 obj->insert(
"dcBlock", QJsonValue(
dc_block));
256 obj->insert(
"lpfBW", QJsonValue(
lpf_bw));
259 obj->insert(
"gain", QJsonValue(
gain));
262 obj->insert(
"ncoEnable", QJsonValue(
nco_enable));
271 obj->insert(
"gainMode", QJsonValue(
gain_mode));
274 obj->insert(
"lnaGain", QJsonValue(
lna_gain));
277 obj->insert(
"tiaGain", QJsonValue(
tia_gain));
280 obj->insert(
"pgaGain", QJsonValue(
pga_gain));
283 obj->insert(
"extClock", QJsonValue(
ext_clock));
289 obj->insert(
"pwrmode", QJsonValue(
pwrmode));
543 bool isObjectUpdated =
false;
569 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)