Skip to content
Advertisement

How to merge json string and give new alias and remove old key in Python

I have Some of the data that have nested attribute and need to combine and give new alias also remove the old one.

Sample Data:

JavaScript

Expected Output:

JavaScript

How can acheived this using python

Advertisement

Answer

You can solve this by using jsonmerge:

JavaScript
JavaScript

for more complex use cases check Project Description.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement