title: Replace password key value pair in Json String
body: <p>here the problem is, I want to replace password value as '**********' if i find password element in the string.</p>
  
  <p>eg: string <code>"{"element" : "test1", "password": "dfsdn653##"}"</code></p>
  
  <p>should be replaced as </p>
  
  <pre><code>"{"element" : "test1", "password": "********"}"
  //OR
  "{"element" : "test1", "password": ""}"
  </code></pre>
  
  <p>i tried replacing the string using regex, but didn't work.</p>