title: IHttpActionResult return Json object
body: <p>I have created one method in <code>mvc api</code> which returns string. But instead of returning <code>string</code>, I want to return <code>Json Object</code>. Here is my code. </p>
  
  <pre><code>    [AllowAnonymous]
      [HttpPost]
      [Route("resetpassword")]
      public IHttpActionResult ResetPassword(string email)
      {
          CreateUserAppService();
          string newPassword =_userAppService.ResetPassword(email);
  
          string subject = "Reset password";
          string body = @"We have processed your request for password reset.&lt;br/&gt;&lt;br/&gt;";
          string from = ConfigurationManager.AppSettings[Common.Constants.FromEmailDisplayNameKey];
          body = string.Format(body, newPassword, from);
  
          SendEmail(email, subject, body, string.Empty);
          return Ok&lt;string&gt;(newPassword);
      }
  </code></pre>
  
  <p>Here it returns <code>Ok&lt;string&gt;(newPassword);</code> Now I want to return <code>Json object</code>. How can I return <strong>Json object</strong>?</p>