* Add pluggable JSON backends with support for the JSON gem. [rick]     Example: ActiveSupport::JSON.backend = "JSONGem"
* Add pluggable JSON backends with support for the JSON gem. [rick]
    Example: ActiveSupport::JSON.backend = "JSONGem"

  All internal Rails JSON encoding is now handled by ActiveSupport::JSON.encode().  Use of #to_json is not recommended, as it may clash with other libraries that overwrite it.  However, you can recover Rails specific functionality
  if you really want to use #to_json.

    gem 'json'
    ActiveSupport::JSON.backend = "JSONGem"

    class ActiveRecord::Base
      alias to_json rails_to_json
    end

yui-knk/activeresource,om-nishu-trantor/activeresource,1776/activeresource,wyattisimo/activeresource,Shopify/activeresource,rails/activeresource,maclover7/activeresource,eileencodes/activeresource,chadzilla2080/activeresource,repinel/activeresource,SweeD/activeresource,rjordan/activeresource,delameko/activeresource,peterjm/activeresource