rails/rails — pull request #6938 by acapilleri (2012-07-03 06:59:17+00:00)
Title: small refactoring of as_json method

with this change root has always one assignment