• G
    Improved compatibility with the stdlib JSON gem. · 0f33d70e
    Godfrey Chan 提交于
    Previously, calling `::JSON.{generate,dump}` sometimes causes
    unexpected failures such as intridea/multi_json#86.
    
    `::JSON.{generate,dump}` now bypasses the ActiveSupport JSON encoder
    completely and yields the same result with or without ActiveSupport.
    This means that it will **not** call `as_json` and will ignore any
    options that the JSON gem does not natively understand. To invoke
    ActiveSupport's JSON encoder instead, use `obj.to_json(options)` or
    `ActiveSupport::JSON.encode(obj, options)`.
    0f33d70e
encoding_test.rb 13.7 KB