Adds a controller and outputs raw JSON in the page.