18 #include <QJsonDocument> 141 QByteArray array (json.toStdString().c_str());
142 QJsonDocument doc = QJsonDocument::fromJson(array);
143 QJsonObject jsonObject = doc.object();
193 QJsonDocument doc(*obj);
194 QByteArray bytes = doc.toJson();
196 return QString(bytes);
201 QJsonObject* obj =
new QJsonObject();
209 obj->insert(
"lnaGain", QJsonValue(
lna_gain));
212 obj->insert(
"vga1", QJsonValue(
vga1));
215 obj->insert(
"vga2", QJsonValue(
vga2));
218 obj->insert(
"bandwidth", QJsonValue(
bandwidth));
221 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
224 obj->insert(
"fcPos", QJsonValue(
fc_pos));
227 obj->insert(
"xb200", QJsonValue(
xb200));
230 obj->insert(
"xb200Path", QJsonValue(
xb200_path));
236 obj->insert(
"dcBlock", QJsonValue(
dc_block));
443 bool isObjectUpdated =
false;
464 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)