I am trying to replace a JSON value with a value from another JSON file. So for example I have this JSON file:
{'data': [{'street': '1'}, {'street': '2'}, {'street': '3'}]}
and now I want to replace the 'street' value with a corresponding value of this JSON file:
{'data': [{'1': 'Example Street 1'}, {'2': 'Example Street 2'}, {'3': 'Example Street 3'}]}
so the result should be:
{'data': [{'street': 'Example Street 1'}, {'street': 'Example Street 2'}, {'street': 'Example Street 3'}]}
I am trying to learn python so I don't know how to solve this problem and I couldn't find a solution on the internet. If somebody knows how to solve this please help me.