let newJson = {};
({
"foo": {
"name": newJson.FirstName,
"height": newJson.RealHeight
}
} =
{
"foo": {
"name": "Felipe",
"height": "55"
}
});
console.log({newJson})
As we Know the above code will return in JS the follow output:
{newJson :{FirstName: "Felipe", RealHeight: "55"}}
I Would like to kwnow if there is a Lib or a way to do it in PYTHON