You can use Object.keys like this:
const response = pm.response.json();
const keys = Object.keys(response);
console.log(keys);
JavaScript Documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
You can use Object.keys like this:
const response = pm.response.json();
const keys = Object.keys(response);
console.log(keys);
JavaScript Documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys