Change password in json file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change password in json file

L1 Bithead

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"

    }

2 REPLIES 2

L7 Applicator

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"?

L1 Bithead

Hello Bernard

I am afraid changing json file is almost impossible. this is prod environment.

  • 282 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!