18 #include <QJsonDocument> 211 QByteArray array (json.toStdString().c_str());
212 QJsonDocument doc = QJsonDocument::fromJson(array);
213 QJsonObject jsonObject = doc.object();
279 QJsonDocument doc(*obj);
280 QByteArray bytes = doc.toJson();
282 return QString(bytes);
287 QJsonObject* obj =
new QJsonObject();
298 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
301 obj->insert(
"fcPos", QJsonValue(
fc_pos));
322 obj->insert(
"bandwidth", QJsonValue(
bandwidth));
328 obj->insert(
"globalGain", QJsonValue(
global_gain));
334 obj->insert(
"autoGain", QJsonValue(
auto_gain));
633 bool isObjectUpdated =
false;
645 if(
antenna !=
nullptr && *
antenna != QString(
"")){ isObjectUpdated =
true;
break;}
662 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual bool isSet() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)