Use a template to render json.
Add templates, _layout as base, json for json.