I have an array of objects like this
const jsonx =[{"name":"John Doe"},{"name2":"Marry Doe"},{"name3":"Michael"}]
What I am trying to achieve are the values of each object out of the array as follows
{"name":"John Doe","name2":"Marry Doe","name3":"Michael"}
I have tried the following methods, but did not manage to get what I need.
//console.log(Array.of(...jsonx));
//console.log(JSON.stringify(jsonx));