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
No known key found for this signature in database
GPG Key ID: 8B83F77667B1BC6A

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();
}