loop for challenge json