how do i edit/change a particular field in a json file using python code:
{
"EZMessage":{
"action":"account.cash",
"data":{
"authToken":"123456",
"account":"#ACCOUNTID#",
"portfolio":"true",
"historical":"true"
}
}
}
in this json code, i want to replace 123456 with 789123
string replace only works if i know what is written there. in my code, i would only know what to write, and the identifier "authToken". Is there a way to overwrite the 123456 by identifying that it is the value of "authToken" ?
thanks,
RS