Hi there,
lets say there is a JSON file with more than 100 objects, build with QJsonObject, QJsonDocument and QFile:
{
"object1": {
"name": "whatever",
"size": "1"
},
"object6": {
"name": "whatever",
"size": "1"
}
"object23": {
"name": "whatever",
"size": "1"
}
and so forth...
}
With Qt 5.6 what's the easiest way to replace a single object (for example "object6") / or insert one if it doesn't exist (for example "object4")?
I got no problem to write the hole JSON file with a replaced or inserted new object again. But is it possible to just write / replace a single object?
Bookmarks