I'm trying to use a unique ID to store a JSON object in an array so that I can pull out that specific object at a later date in my code, however my expected output isn't happening:
var applications = []
var key = 50
var obj = {
  key: {
    "name": "John"
  }
}
// expected output:
//
// [{
//   '50': {
//     "name": "John"
//   }
// }]
// 
applications.push(obj)
 
     
    