Serve json rather than html.