18 #include <QJsonDocument> 107 QByteArray array (json.toStdString().c_str());
108 QJsonDocument doc = QJsonDocument::fromJson(array);
109 QJsonObject jsonObject = doc.object();
147 QJsonDocument doc(*obj);
148 QByteArray bytes = doc.toJson();
150 return QString(bytes);
155 QJsonObject* obj =
new QJsonObject();
157 obj->insert(
"success", QJsonValue(
success));
163 obj->insert(
"fifoSize", QJsonValue(
fifo_size));
166 obj->insert(
"fifoFill", QJsonValue(
fifo_fill));
178 obj->insert(
"linkRate", QJsonValue(
link_rate));
184 obj->insert(
"temperature", QJsonValue(
temperature));
187 obj->insert(
"gpioDir", QJsonValue(
gpio_dir));
190 obj->insert(
"gpioPins", QJsonValue(
gpio_pins));
319 bool isObjectUpdated =
false;
334 return isObjectUpdated;
void setValue(void *value, QJsonValue obj, QString type, QString complexType)