18 #include <QJsonDocument> 136 QByteArray array (json.toStdString().c_str());
137 QJsonDocument doc = QJsonDocument::fromJson(array);
138 QJsonObject jsonObject = doc.object();
186 QJsonDocument doc(*obj);
187 QByteArray bytes = doc.toJson();
189 return QString(bytes);
194 QJsonObject* obj =
new QJsonObject();
202 obj->insert(
"bandwidth", QJsonValue(
bandwidth));
205 obj->insert(
"lnaGain", QJsonValue(
lna_gain));
208 obj->insert(
"vgaGain", QJsonValue(
vga_gain));
211 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
214 obj->insert(
"fcPos", QJsonValue(
fc_pos));
220 obj->insert(
"biasT", QJsonValue(
bias_t));
223 obj->insert(
"lnaExt", QJsonValue(
lna_ext));
226 obj->insert(
"dcBlock", QJsonValue(
dc_block));
423 bool isObjectUpdated =
false;
443 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)