allow returning a view, set JSON to but extension overrides, allow xml and json