Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Please help me with your QT code for correcting my JSON file which described below
Forum Updated to NodeBB v4.3 + New Features

Please help me with your QT code for correcting my JSON file which described below

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 428 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.
  • R Offline
    R Offline
    Raji
    wrote on last edited by
    #1

    Hi Friends,

    Please some one can help me with following scenario. It was screwed a lot , here is my problem.

    {
    "connection":{
    "type":"ETH10G",
    "param":{
    "devip":"192.168.0.166",
    "localip":"192.168.0.160",
    "stream_port":15560,
    "control_port":15561,
    "event_port":15562
    }
    },
    "system":{
    "mode":"reprocessing",
    "dbc":{
    "file":"LGSim_CAN.dbc",
    "table":"LGSim_CAN.table"
    }
    },
    "reprocess":{
    "type":"ROS-IF",
    "param":{
    "ip":"127.0.0.1",
    "port":9090,
    "width":1280,
    "height":720,
    "pixelformat":10
    }
    }
    In above json file i want to modify the values of in side "param" but its unable to change the values in side it, where as it is inserting a new value out of param list as shown below.

    "connection": {
    "type": "ETH10G"
    "devip": "198.168.1.2",
    "param": {
    "control_port": 15561,
    "devip": "192.168.0.166",
    "event_port": 15562,
    "localip": "192.168.0.160",
    "stream_port": 15560
    },
    }
    please assists me with your views the way to assign the values to the keys inside the flow: Connection-->param--> devip: new_value.

    During my execution the variable is created out of the scope of the param list inside a connection, The desired format should be the assigend key and value inside scope of param list inside connection object

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Isn't that the same question as this thread where you already have answers ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Isn't that the same question as this thread where you already have answers ?

        R Offline
        R Offline
        Raji
        wrote on last edited by
        #3

        @SGaist : That having code but it doesn't provide desired output as i am expecting .

        SGaistS 1 Reply Last reply
        0
        • R Raji

          @SGaist : That having code but it doesn't provide desired output as i am expecting .

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Raji said in Please help me with your QT code for correcting my JSON file which described below:

          @SGaist : That having code but it doesn't provide desired output as i am expecting .

          That's not clear at all and as already said in my previous post, it looks the same as your other thread except maybe that in this one your are explicitly asking people to write the code for you.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply
          1
          • SGaistS SGaist

            @Raji said in Please help me with your QT code for correcting my JSON file which described below:

            @SGaist : That having code but it doesn't provide desired output as i am expecting .

            That's not clear at all and as already said in my previous post, it looks the same as your other thread except maybe that in this one your are explicitly asking people to write the code for you.

            R Offline
            R Offline
            Raji
            wrote on last edited by
            #5

            @SGaist : I am not asking to write code, just i am asking how to modify the value in param
            i am able to modify the value in connections ,but i am unable modify the value of param, i want to refer to connection->param->"devid": new value . how to modify that value i am asking sir.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What code are you using ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

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