added json stuff to views

Signed-off-by: Jason Kuster <unexpectedapocalypse@gmail.com>