wrote function to iterate json object and place multiple markers on map