rails/rails — pull request #6040 by davout (2012-04-28 21:49:51+00:00)
Title: BigDecimal string wrapping in JSON serialization can now be opted-out

Please see issue #6033

This commit allows one to easily opt-out of the specific BigDecimal JSON serialization (ie. get actual numeric serialization instead of having a string-wrapped number)

I think this should be the default behaviour in a future major release as this breaks the principle of least surprise and assumes that users always have control of the parsing end. It should be made opt-in instead when breaking backwards compatibility is acceptable.