Switch to using a view package to render the JSON.