18 #include <QJsonDocument> 176 QByteArray array (json.toStdString().c_str());
177 QJsonDocument doc = QJsonDocument::fromJson(array);
178 QJsonObject jsonObject = doc.object();
242 QJsonDocument doc(*obj);
243 QByteArray bytes = doc.toJson();
245 return QString(bytes);
250 QJsonObject* obj =
new QJsonObject();
264 obj->insert(
"lpfFIRBW", QJsonValue(
lpf_firbw));
273 obj->insert(
"fcPos", QJsonValue(
fc_pos));
276 obj->insert(
"dcBlock", QJsonValue(
dc_block));
291 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
294 obj->insert(
"lpfBW", QJsonValue(
lpf_bw));
297 obj->insert(
"gain", QJsonValue(
gain));
303 obj->insert(
"gainMode", QJsonValue(
gain_mode));
583 bool isObjectUpdated =
false;
611 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)