[ruby-core:126369] [Ruby Bug#22241] Restore compatibility for removed `JSON.dump` and `JSON.parse` arguments