diff options
author | Jean Boussier <[email protected]> | 2025-04-15 13:43:02 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-04-15 16:48:22 +0900 |
commit | 26a9ccbf83957877355ef5eb3993dc28e07e4278 () | |
tree | dcc883596bfc66f5be4e941ce527c14643f3deb9 /ext/json/lib | |
parent | 1afc5399004ac5f27133469873571e7ff0ab16ab (diff) |
[ruby/json] Deprecate Kernel#j and Kernel#jj
https://.com/ruby/json/commit/27155b6500
-rw-r--r-- | ext/json/lib/json/common.rb | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1005,6 +1005,12 @@ module ::Kernel # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in # one line. def j(*objs) objs.each do |obj| puts JSON::generate(obj, :allow_nan => true, :max_nesting => false) end @@ -1014,6 +1020,12 @@ module ::Kernel # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with # indentation and over many lines. def jj(*objs) objs.each do |obj| puts JSON::pretty_generate(obj, :allow_nan => true, :max_nesting => false) end |