getJSON function works, and data displays in view page.