Hacker News new | ask | show | jobs
by zach 5976 days ago
The trite answer is to_json. The more substantial answer is to use a Javascript generator like RJS.