for loop on json array