What is the purpose of the eval() ? as the line
var theObject = {"key": "value"};
*IS* a "json" object
alert(thiObject.key) will show you "value"
On Jun 30, 11:09 pm, theozmanbo <[email protected]> wrote:
> Why won't this work??? Nothing pops up for the alert.
>
> <script type="text/javascript">
>
> var theObject = {"key": "value"};
> var JSON = eval ("("+theObject+")");
> alert(JSON.key);
>
> </script>
> --
> View this message in
> context:http://www.nabble.com/simple-JSON-parse-problem%21%21%21-tp24283450s2...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.