I've learned (the hard way) that I need to add parentheses around JSON data, like this:
stuff = eval('(' + data_from_the_wire + ')');
// where data_from_the_wire was, for example {"text": "hello"}
(In Firefox 3, at least).
What's the reason behind this? I hate writing code without understanding what´s behind the hood.