I receive a JSON object like this:
{
    "Question Communicating": "Natural language",
    "interpretation_type": "recognition",
    "output1": "test",
    "Question Learning": "Reinforcement",
    "output2": "test2",
    "output3": "something"
}
My question is, is it possible to rename the key name: 'outputX' to 'output'.
I don't know how many times 'outputX' will be in the JSON, but I need all the outputs renamed to 'output'.
So it will end up like this:
{
    "Question Communicating": "Natural language",
    "interpretation_type": "recognition",
    "output": "test",
    "Question Learning": "Reinforcement",
    "output": "test2",
    "output": "something"
}
 
     
    