to_json is working fine. What you're running into is Rails 3.x's XSS protection. There's a good article on this at Railscasts/ASCIIcasts. The gist, though, is that you need to use the raw or html_safe methods:
In your controller:
@t_json = @t.to_json.html_safe
OR in your view:
<%= raw @t %>