summaryrefslogtreecommitdiff
path: root/ext/json/lib
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-04-24 18:21:23 +0200
committerHiroshi SHIBATA <[email protected]>2025-04-25 11:11:21 +0900
commit05f949ebbff5c2b6cce01598cc069472bfbe52d2 ()
tree546b6d08f736ca211f99b1e8c4d5a23e703346b9 /ext/json/lib
parent1d65d5ce473ed098a02aa0150f318f3fc69a1e80 (diff)
[ruby/json] Bring back JSON::PRETTY_STATE_ with a deprecation
Fix: https://.com/ruby/json/issues/788 `multi_json` rely on it, even though it was never documented as public API. Bringing it back as a method so it can emit a deprecation warning. https://.com/ruby/json/commit/123121bba2
-rw-r--r--ext/json/lib/json/common.rb18
1 files changed, 18 insertions, 0 deletions
@@ -961,6 +961,24 @@ module JSON
load(...)
end
module_function :restore
# :startdoc:
# JSON::Coder holds a parser and generator configuration.