class-based view, added new json mixin