How to convert a QJsonObject to a QString
-
You need to get a QJsonValue, which has a .toString() method. That or you need to use QJsonDocument to turn a whole object into a string.
@QString jsonToString(QJsonObject json)
{QJsonDocument Doc(json); QByteArray ba = Doc.toJson(); return QString(ba);
}@