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();
212 obj->insert(
"bandwidth", QJsonValue(
bandwidth));
215 obj->insert(
"gainMode", QJsonValue(
gain_mode));
218 obj->insert(
"globalGain", QJsonValue(
global_gain));
221 obj->insert(
"biasTee", QJsonValue(
bias_tee));
224 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
227 obj->insert(
"fcPos", QJsonValue(
fc_pos));
230 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)