title: Using a function constructor for evaluating AJAX result instead of eval()
body: <p>Can anyone suggest a reason why this may be better or worse than using eval() for AJAX calls? I think I found on a Google related page that advocated it over eval() since eval runs in the global scope whereas the functions contents here don't.</p>
  
  <pre><code>str = '{a: 90, b: 99}';
  callback = new Function ('return ' + str);
  obj = callback();
  </code></pre>