title: JSON2 Error / Conflict with another script
body: <p>I am using the JSON2 library in order to use <code>JSON.stringify</code> to send some JSON data to my MVC controller.</p>
  
  <p>When I include another script in my view (Telerik MVC) I start to get script conflicts when using IE7.</p>
  
  <p>When I click the refresh button in the grid, I get the following error:</p>
  
  <pre><code>Line: 191
  Error: Object doesn't support this property or method
  
  String.prototype.toJSON      =
      Number.prototype.toJSON  =
      Boolean.prototype.toJSON = function (key) {
          return this.valueOf();
      };
  </code></pre>
  
  <p>The error occurs on the following line specifically:</p>
  
  <pre><code>return this.valueOf();
  </code></pre>
  
  <p>Does anyone have any insight into why this conflict is occurring and how to resolve it? Specifically, why would this work in IE8/Chrome but fail in IE7. What would cause the error? Are both scripts trying to define the same method and that's why it is failing or is it impossible to tell without digging through tons of code?</p>
  
  <p><strong>Edit</strong>:<br>
  This is the json2.js library I am speaking of: <a href="https://github.com/douglascrockford/JSON-js" rel="nofollow">https://github.com/douglascrockford/JSON-js</a></p>