make my loop for my json better and it now displays properly