parsing tags from json data in loop