JSON object over network
-
Hi,
I would like to know how should I go about sending a json file over network from server to client?
-
You can:
- Read file to QByteArray and send it via network.
- Red file by "QJsonDocument":http://qt-project.org/doc/qt-5/qjsondocument.html then convert it to json string or binary json and then send it.