Loop Objects in Javascript

for(var key in permissions){
  var obj = permissions[key];
  console.log(obj.category);
}