@Mega69authorApr 23.2008 — #I want to eval a string coming from the server.
In order not to have to test the string with a regex ( for security ) I would like to evaluate the code in a "indipependent environment" in which it is impossible, for example, to steal cookies from the parent window.
@A1ien51Apr 23.2008 — #You are not going to be able to do that really. If you want to check for bad code, you should run a regular expression and make sure it is a valid JSON object and not something else.