rails/rails — pull request #6546 by erichmenge (2012-05-30 00:17:34+00:00)
Title: True, False, and Nil should be represented in as_json as themselves.

Tests are a bit lame, but relevant I guess. Let me know if you think they're unnecessary.

Relates to #6536.

as_json should return the closest Ruby representation it can. `nil`, `true`, and `false` are all simple singletons that can be represented easily without using a string representation.