in reply to Javascript in your JSON

As I said, I totally agree that is not JSON, as JSON is a standard per json.org which does not include scripting.

But I never implied that scripting was part of the JSON standard. I was just looking for a way to augment my JSON structure with scripting.

For the record, I've just found this simple but effective module, JavaScript::Dumper. It's based on JSON::PP and that does the trick.
cheers
-miguel