@CupofCoffee said in how can i modify the value of the Qjason array?:
TradingAreaInfoArr = rootObj["TradingAreaInfo"].toArray();
My understanding is that this returns a copy of the QJsonArray. You can modify that copy (update values, append new ones), but that does not alter the array in the QJsonDocument. The same with the QJsonObject InfoObj = rootObj["info"].toObject(); The objects/arrays in these are read-only.
You have to copy them out as above, alter them, and then replace the current objects/arrays in the document, or create a new one, in order to produce a new document with the updates which can be saved.