Answer the question
In order to leave comments, you need to log in
Why is QJsonObject always empty?
I get json using a get request and try to process it somehow. The problem is that the QJsonObject is always empty (even though the QJsonDocument contains all the data). How to fix?
QByteArray qb(reply->readAll());
QJsonObject json = QJsonDocument::fromJson(qb).object();
QJsonObject json = QJsonDocument::fromJson(reply->readAll()).object();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question