renamed View class to something appropriate
Changed class name
refactored json output function