While Loop and JSON Data