Set proper content type when rendering json