18 #include <QJsonDocument> 72 QByteArray array (json.toStdString().c_str());
73 QJsonDocument doc = QJsonDocument::fromJson(array);
74 QJsonObject jsonObject = doc.object();
98 QJsonDocument doc(*obj);
99 QByteArray bytes = doc.toJson();
101 return QString(bytes);
106 QJsonObject* obj =
new QJsonObject();
108 obj->insert(
"success", QJsonValue(
success));
111 obj->insert(
"fifoSize", QJsonValue(
fifo_size));
114 obj->insert(
"fifoFill", QJsonValue(
fifo_fill));
117 obj->insert(
"temperature", QJsonValue(
temperature));
120 obj->insert(
"gpsLock", QJsonValue(
gps_lock));
179 bool isObjectUpdated =
false;
187 return isObjectUpdated;
void setValue(void *value, QJsonValue obj, QString type, QString complexType)