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.
str = '{a: 90, b: 99}';
callback = new Function ('return ' + str);
obj = callback();