An Issue with pushing elements to a nested JSON : In the following code, I want to push new elements to JSON array:

    var temp = [];
    for(var i in resultDb){		
    				temp.push({'ID':resultDb[i].ID});
    				temp.push({'Label':resultDb[i].Label});
    				temp.push({'User':[{'Name':resultDb[i].Name , 'ScreenName':resultDb[i].ScreenName}]});
    				temp.push({'TDate':resultDb[i].TDate});
    			}
    
    for(var i in temp){
    				console.log(temp[i].User.ScreenName);
    			}

The result that I got is `Cannot read property 'ScreenName' of undefined`. The problem specifically is with `User` but the others are fine; they can be printed.