Looking for a solution to modify the values in a list of flat JSON key-value pairs by replacing them with empty strings.
Below is an example of the JSON data:
{
"wl.label.accountPin": "Account PIN",
"wl.label.logon": "Logon details",
...
}
The goal is to retain the keys but blank out the corresponding values. For instance,
"wl.label.accountPin": "Account PIN"
should become "wl.label.accountPin": ""
.
How can this task be efficiently accomplished?