JSFiddle - React, Tailwind, and code Playground
JavaScript
var customers =
[{"id":"1", "name":"John","position":"CEO","office":"NY", "active": "1"},
{"id":"2", "name":"Michael","position":"CEO","office":"NY", "active": "1"},
{"id":"3", "name":"Wanda","position":"CEO","office":"NY", "active": "0"},
{"id":"3", "name":"Novak","position":"CEO","office":"NY", "active": "0"}];
var count = customers.length;
var newArray = customers.map(function(item,index){
return { "id": item.id, "name": item.name,"position": item.position }
});
console.log(newArray)