Update REST service for checkanswer to work with JSON requests.