A
A
Alexey2021-07-22 22:15:51
JSON
Alexey, 2021-07-22 22:15:51

How to overwrite value in json file?

You need to edit the json file and change the values ​​​​in some places of the file from true to false
Specifically, you need to change "AutoDate": true, to "AutoDate": false

{
    "Enabled": true,
    "ConnectEndPoint": {
      "ConnectIP": "11.251.193.111",
      "ConnectPort": 10110
    },
    "Information": {
      "WebURL": "",
      "AutoDate": true,
      "GetCurrentTime": 3600
    },
},
{
    "Enabled": true,
    "ConnectEndPoint": {
      "ConnectIP": "11.251.193.111",
      "ConnectPort": 10110
    },
    "Information": {
      "WebURL": "",
      "AutoDate": true,
      "GetCurrentTime": 3600
    },
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gennady S, 2021-07-22
@gscraft

What's the problem? Understand how to work with JSON in C#, i.e. 1) parse into an object 2) change the value 3) write back to JSON. https://docs.microsoft.com/en-us/dotnet/standard/s... or https://www.newtonsoft.com/json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question