Making the controller tailored for JSON only