fixed loop of json data