title: @Around advice returning correct response but at client side response is null or undefined
body: <p>I am trying to apply Around advice to my "Login.jsp" with angular js. And the problem is my controller method is check and I am applying around advice to check method but when I run my application I will get undefined as response at Login.jsp. And but the result which I had printed in my advice contains expected result.But I am not getting it on client side.</p>
  
  <p><strong>AroundAdvice.java</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>@Aspect @Component
  public class AroundAdvice {
      static Logger log = Logger.getLogger(AfterLoginAspect.class.getName());
  
      @Around("execution(* com.admin.controller.LoginController.check(..))")
      public void logWrittter(ProceedingJoinPoint jp) throws Throwable {
          SimpleDateFormat date=new SimpleDateFormat();
          log.info("Date Time :: " + date.format(new Date().getTime()));
          Object result = jp.proceed();
          System.out.println("result around");
          log.info("result :: " + result);
          // returns {"get Status":"home"}
      }
  }
  </code></pre>
  
  <p><strong>LoginController.jsp</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>// authentication check
  @RequestMapping(value = "/PostFormData", method = RequestMethod.POST)
  public @ResponseBody JSONObject check(@RequestBody LoginBo login) {
      System.out.println("checkCredentials::" + login.getUserName());
  
      String username = login.getUserName();
      // log.info("uswername ::"+username);
  
      JSONObject result = new JSONObject();
      String encrptedpassword = encryptdPwd.encrypt(login.getPassWord());
  
      boolean login_status = loginService.checkCredentials(username, encrptedpassword);
      // log.info("login_status ::"+login_status);
      // System.out.println("staus ::"+login_status);
  
      if (login_status == true &amp;&amp; login.isIs_system_generated_pwd() == true) {
          System.out.println("sys gen chnge pwd:: " + login.isIs_system_generated_pwd());
          result.put("getStatus", "change");
          // System.out.println(resultPage);
          // login.setIs_system_generated_pwd(false);
      } else if (login_status == true &amp;&amp; login.isIs_system_generated_pwd() == false) {
          result.put("getStatus", "home");
          // System.out.println("Home paege ");
      } else {
          result.put("getStatus", "error");
  
      }
      System.out.println("result ::" + result);
      // log.info("result ::"+resultPage);
      return result;
  }
  </code></pre>