avoid translating back to stf string without reason

This commit is contained in:
iTrooz
2024-11-17 19:02:08 +01:00
parent b35cffb347
commit 1f094b9803

View File

@@ -91,9 +91,9 @@ public:
}
Q_UNUSED(readVarInt(resp)); // json length
std::string json = resp.toStdString();
QJsonDocument doc = QJsonDocument::fromJson(QByteArray::fromStdString(json));
// 'resp' should now be the JSON string
QJsonDocument doc = QJsonDocument::fromJson(resp);
return doc.object();
}