Unsolved QT json document
-
Hi friends,
i wrote json data to json file as below
[ { "channelID": "1", "createdDateTime": "2020-05-13 16.49.12.619", "fileName": "sample_1.pdf", "filePath": "/home/YazmiFileRepository", "groupIDS": [ "1", "2", "3" ], "isApprovalRequired": "No", "isApproved": "Approved", "modifiedDateTime": "2020-05-13 16.49.12.618", "priority": 1, "scheduleID": "1", "scheduleType": "Immediate File", "status": "Schedule created successfully @ 2020-05-13 16.49.12.619" }, { "channelID": "2", "createdDateTime": "2020-05-13 16.49.12.619", "fileName": "sample_2.pdf", "filePath": "/home/YazmiFileRepository", "groupIDS": [ "1", "2", "3" ], "isApprovalRequired": "No", "isApproved": "Approved", "modifiedDateTime": "2020-05-13 16.49.12.619", "priority": 1, "scheduleID": "2", "scheduleType": "Immediate File", "status": "Schedule created successfully @ 2020-05-13 16.49.12.619" } ]
i want to update only status element of first object status can anybody give solution with some code.
-
There is no alternative to loading the entire document, modifying the element and save it down again