diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-03-26 11:47:51 +0100 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-03-27 11:37:27 +0900 |
| commit | f4529ecbe7adf6cc24bf8f8aa92becbc005e897a (patch) | |
| tree | feeff4f1bc07b0381e53f233290b1b34321570d0 /spec/ruby/core/array/sum_spec.rb | |
| parent | 46ee73f4f6a6fceba4ed6dfe6622c78462a2b1ac (diff) | |
[ruby/json] Deprecate all `*_default_options`
Globally changing the behavior of the library is a bad idea, as
many different libraries may rely on `json` and may not expect it
and likely never tested that a different default config works for them.
If you need to change the behavior of JSON, it's best to do it only
locally, and not globally.
In addition the new `JSON::Coder` interface is much more suited for
that.
Another reason for the deprecation is that it's impossible to
make `JSON.load` and `JSON.dump` Ractor-safe with such API.
https://github.com/ruby/json/commit/172762c6e4
Diffstat (limited to 'spec/ruby/core/array/sum_spec.rb')
0 files changed, 0 insertions, 0 deletions
