var categories= {
  "art": 352,
  "health-beauty": 358,
  "home": 372,
  "jewelry": 339,
  "kids": 320
}
for(var i in categories)
{
    console.log("name: " + i + "id: " + ?);
}
I'm trying to import name of categories and id to mongodb but having hard time how to get the ID of each value? Is this possible or I have to re arrange the JSON file by hand?
 
    