18 #include <QJsonDocument> 85 QByteArray array (json.toStdString().c_str());
86 QJsonDocument doc = QJsonDocument::fromJson(array);
87 QJsonObject jsonObject = doc.object();
113 QJsonDocument doc(*obj);
114 QByteArray bytes = doc.toJson();
116 return QString(bytes);
121 QJsonObject* obj =
new QJsonObject();
126 obj->insert(
"sampleRate", QJsonValue(
sample_rate));
129 obj->insert(
"sampleSize", QJsonValue(
sample_size));
207 bool isObjectUpdated =
false;
209 if(
file_name !=
nullptr && *
file_name != QString(
"")){ isObjectUpdated =
true;
break;}
216 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)