I have following code
if(ssnFlag == false){
console.log(userName)
userSessions.push({userName : [{"sessionId" : dsid}]})
console.log("pushing::" + JSON.stringify(userSessions[0]))
}
the output is
OIC_PLAN_ADMIN_OPERATIONS
pushing::{"userName":[{"sessionId":"0000MTEJon9Fs1MLIMK6yf1Ry1Ob0004vf"}]}
Notice when userName value is OIC_PLAN_ADMIN_OPERATIONS then why in the next like the word userName is being pushed when i am expecting it to push OIC_PLAN_ADMIN_OPERATIONS