18 #include <QJsonDocument> 191 QByteArray array (json.toStdString().c_str());
192 QJsonDocument doc = QJsonDocument::fromJson(array);
193 QJsonObject jsonObject = doc.object();
263 QJsonDocument doc(*obj);
264 QByteArray bytes = doc.toJson();
266 return QString(bytes);
271 QJsonObject* obj =
new QJsonObject();
282 obj->insert(
"dcBlock", QJsonValue(
dc_block));
291 obj->insert(
"lpfBW", QJsonValue(
lpf_bw));
297 obj->insert(
"lpfFIRBW", QJsonValue(
lpf_firbw));
300 obj->insert(
"gain", QJsonValue(
gain));
303 obj->insert(
"ncoEnable", QJsonValue(
nco_enable));
312 obj->insert(
"gainMode", QJsonValue(
gain_mode));
315 obj->insert(
"lnaGain", QJsonValue(
lna_gain));
318 obj->insert(
"tiaGain", QJsonValue(
tia_gain));
321 obj->insert(
"pgaGain", QJsonValue(
pga_gain));
324 obj->insert(
"extClock", QJsonValue(
ext_clock));
339 obj->insert(
"gpioDir", QJsonValue(
gpio_dir));
342 obj->insert(
"gpioPins", QJsonValue(
gpio_pins));
643 bool isObjectUpdated =
false;
674 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)