JavaScript to flatten nested JSON object based on key value
Any suggestions on how to update below JSON object as expected one in Javascript? Have been trying to flatten JSON object based on JSON key, ..outer_component[x] contains section{} then moved to outer_component[x].outer_body.outer_component[x] ..outer_component[x] contains outer_body{} then keep on iterate till…