updated json call to enclude "entry" for the for loop and switch loop.  commented out some debug lines