title: JSON stringify returning null (C# WebBrowser control)
body: <p>I am trying to get a string representation of my JSON object back to my C# application, but every time I use <code>JSON.stringify(jsonObj)</code>, it returns <code>null</code> to my application. I am using a <code>WebBrowser</code> control.</p>
  
  <p>Page is set up like this:</p>
  
  <pre><code>var myObj = { "foo": [] }
  // Push data into it
  
  function getMyObj() {
      return JSON.stringify(myObj);
  }
  </code></pre>
  
  <p>In my C# code I have this:</p>
  
  <pre><code> string bar = myWebBrowser.MainBrowser.Document.InvokeScript("getMyObj").ToString();
  </code></pre>
  
  <p>However, after invoking the method, it returns <code>null</code>. I even tried putting an <code>alert</code> in the JavaScript page where I call the <code>getMyObj()</code> function inside the <code>alert</code>, but the alert never comes up.</p>
  
  <p>Is it a <code>WebBrowser</code> control issue? JSON should be supported, the browser is using IE11.</p>