foreach iterator in objects too for those who work with json data

foreach iterator in objects too for those who work with json data