Obtenha todas as chaves no objeto JSON
var obj = {name: "Jeeva", age: "22", gender: "Male"}
console.log(Object.keys(obj))
Powerful Porpoise
var obj = {name: "Jeeva", age: "22", gender: "Male"}
console.log(Object.keys(obj))
var parsedJson = JSON.parse(json_text);
Result = Object.keys(parsedJson[0]).reduce((acc, key) => {
acc[key] = parsedJson.map(item => item[key])
return acc
},{})
console.log(JSON.stringify(Result,undefined, 4));