@RequestMapping( value = "/testJSON", method = RequestMethod.POST, produces = "application/json; charset=UTF-8") @ResponseBody public Person testArray2() { String result = "This is result of a test Array function"; // return request.status; Person person = new Person(); person.name = "mit"; person.age = 21; return person; }