I think `#to_json` is redundant here. It's called automatically. It may be even harmful, see http://jonathanjulian.com/2010/04/rails-to_json-or-as_json/