@RequestMapping(value = "/addResult", method = RequestMethod.POST)
	public @ResponseBody
	String getTestResult(@RequestParam int id) {
		Map<String, String> answers = new TreeMap<String, String>();
		if (answerService.getAnswerById(id).getIsCorrect()) {
			answers.put("green", answerService.getAnswerById(id).getAnswer());
		}else{
			answers.put("red", answerService.getAnswerById(id).getAnswer());
		}
		ObjectWriter mapper = new ObjectMapper().writer().withDefaultPrettyPrinter();
		String json = "";
		try {
			json = mapper.writeValueAsString(answers);
		} catch (JsonGenerationException e) {
			e.printStackTrace();
		} catch (JsonMappingException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return json;
	}