example of returning json using a view mixin