18 #include <QJsonDocument> 57 QByteArray array (json.toStdString().c_str());
58 QJsonDocument doc = QJsonDocument::fromJson(array);
59 QJsonObject jsonObject = doc.object();
77 QJsonDocument doc(*obj);
78 QByteArray bytes = doc.toJson();
80 return QString(bytes);
85 QJsonObject* obj =
new QJsonObject();
87 obj->insert(
"latitude", QJsonValue(
latitude));
90 obj->insert(
"longitude", QJsonValue(
longitude));
119 bool isObjectUpdated =
false;
124 return isObjectUpdated;
void setValue(void *value, QJsonValue obj, QString type, QString complexType)