Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT json document
Forum Updated to NodeBB v4.3 + New Features

QT json document

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 139 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    satyanarayana143
    wrote on last edited by VRonin
    #1

    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.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      There is no alternative to loading the entire document, modifying the element and save it down again

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved