I have the following json.
[
{
"TX_ID": "C592096166066790609734",
"FEE_1": 0.25,
"FEE_7": 0.95,
"USAGE": "Yzua12"
},
{
"TX_ID": "C636460166108115381222",
"FEE_1": 0.35,
"FEE_3": 1.39,
"USAGE": "Yzua13"
}
]
Using python, I need the below output value "Fee_* " with dict type with an exception to fields "TX_ID" and "USAGE"
Expected Result:
[
{
"TX_ID": "C592096166066790609734",
"FEE_1": {"set":0.25},
"FEE_7": {"set":0.95},
"USAGE": "Yzua12"
},
{
"TX_ID": "C636460166108115381222",
"FEE_1": {"set":0.35},
"FEE_3": {"set":1.39},
"USAGE": "Yzua13"
}
]