var dict = {
"key1" : 100,
"key2" : 200,
"key3" : 300
}
var data = Object.entries(dict).map(([key, value]) => ({[key]: value}))
console.log(data)
Run code snippet
var list = ['Bob','Taylor','Mark','James']
var result = list.map(function(e) {
return {name: e}
})
console.log(result)