Solved QJsonDocument & QNetworkAccessManager
-
Hi
I want to download and use a json file but when I download and give it to the QJasonDocument and print isEmpty() it prints 1 :QByteArray info = reply->readAll(); doc = QJsonDocument::fromJson(info); cout<<doc.isEmpty()<<endl;
what should I do?
-
@shahriar25 Hi! Check the QJsonParseError from QJsonDocument::fromJson.
-
sorry there was a problem with the json file thank you