jamierumbelow/codeigniter-base-controller — pull request #6 by meigwilym (2013-06-19 20:36:17+00:00)
Title: Option to render as JSON

Added a simple method of rendering the view variables as json.

I think this is fine for smaller websites, but I'm not so sure about larger ones. Overall though adding .json to the URI is a quick hack and works. Let me know what you think.