How to modify an array which is already inside a QJsonObject structure?
QJsonObject data = QJsonDocument::fromJson(QByteArrayLiteral("{\"array\":[1,2,3]}")).object();
// TODO: Something to append numbers to the 1,2,3 array?
// This doesn't work:
data["array"].toArray().append(4);
qInfo() << data; // QJsonObject({"array":[1,2,3]}), without the 4th element
toArray() seems to create a copy instead of returning a reference