Note that the code on the left is eval'd and then dumped on the right. What this script does, is the second part, dumping real Javascript data.
You can try your own code, use only 1 line of code. It can handle from the simplest data, to complex collections.
The way each "thing" is dumped can be easily changed, and it support HTML mode output. Enjoy!