18 #include <QJsonDocument> 110 QByteArray array (json.toStdString().c_str());
111 QJsonDocument doc = QJsonDocument::fromJson(array);
112 QJsonObject jsonObject = doc.object();
148 QJsonDocument doc(*obj);
149 QByteArray bytes = doc.toJson();
151 return QString(bytes);
156 QJsonObject* obj =
new QJsonObject();
161 obj->insert(
"apiPort", QJsonValue(
api_port));
167 obj->insert(
"dataPort", QJsonValue(
data_port));
170 obj->insert(
"dcBlock", QJsonValue(
dc_block));
307 bool isObjectUpdated =
false;
321 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)