title: ASP.NET MVC 3 Parse JSon object and display data
body: <p>I have a class</p>
  
  <pre><code>public class ConversionResultModel
      {
          public string ProcessId { get; set; }
          public bool Result { get; set; }
          public string Message { get; set; }         
      }
  </code></pre>
  
  <p>sending it to view using JSon</p>
  
  <pre><code>   public ActionResult UploadFile(IEnumerable&lt;HttpPostedFileBase&gt; clientUpload)
      {
          string destinationPath = "";
          JsonResult result = null;
          var fileModel = new ConversionResultModel();
          fileModel.ProcessId = "4558-95559-554";
          fileModel.Result = true;
          fileModel.Message = "test.pdf";
          result = Json(new { fileModel }, "text/plain");
  
  
          return result;
      }
  </code></pre>
  
  <p>How to parse such JSon object at client side using JS or jQuery and read values?</p>
  
  <p>I have tried to parse JSon object with code below but get Undefined error in alert</p>
  
  <pre><code> var obj = $.parseJSON(e.response);
   alert(e.obj);
  </code></pre>
  
  <p>I receive JSon object like this</p>
  
  <pre><code>{"fileModel":{"ProcessId":"4558-95559-554","Result":true,"Message":null,"SourceFile":null,"ConvertedFileName":"test.pdf","ConvertedFileSize":1233444,"DownloadUrl":"http://localhost:2008/download?path=4558-95559-554","DeleteUrl":"http://localhost:2008/download?path=4558-95559-554"}}
  </code></pre>