- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-04-2023 11:21 PM
Dear all
I have such a json file and i want to change the password in sftpconfig only. Could you please help me find appropirate regex to find exact key: value?
"sftpConfig":{
"host": "1.1.1.1,
"port": "22",
"username": "admin",
"password": "123456"
},
},
"test1":{
"host": "2.2.2.2
"port": "22",
"username": "admin2",
"password": "123456789"
}
01-05-2023 12:16 AM
The fact that there are multiple "password = xyz" lines is complicating the whole scenario. Any chance of reconfiguring the application so that the "sftpConfig" section and "test1" section (and all other sections) are stored in separate files? Or renaming the user/password fields in the "sftpConfig" section to something like "sftpusername = bob" / "sftppassword = abc"?
01-05-2023 12:37 AM
Hello Bernard
I am afraid changing json file is almost impossible. this is prod environment.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

