I have along and complicated JSON tree structure. Instead of looping and traversing the JSON tree in the file was wondering if there is an easier method of achieving the same result.
I have the following (posting small part of json file)
I want to append the file at the position of the arrow in the pic.
let newSectorDistributionComponent = {
"elementProperties": {
"key": "specific sector",
"label": "sector",
"visible": false
}
};
I have already tried other page on SO including: JSON javascript-objects-get-parentnested-javascript-object