You can also use Object.keys() and iterate over the object keys like below to get the value:
var p = {_x000D_
"p1": "value1",_x000D_
"p2": "value2",_x000D_
"p3": "value3"_x000D_
};_x000D_
_x000D_
Object.keys(p).forEach((key)=> {_x000D_
console.log(key +' -> '+ p[key]);_x000D_
});
_x000D_