Object.entries () para um json
const object1 = {first:"a", second:"b"};
console.log(Object.entries(object1));
/*(Array [ "first", "a" ], Array["second", "b])*/
Javasper