added example of iteration through json array
some changes from my IDE