instance method
Kernel#jj
(*::_ToJson) -> nil
jj(*objs)
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/json/lib/json/common.rb, line 1120
def jj(*objs)
if RUBY_VERSION >= "3.0"
warn "Kernel#jj is deprecated and will be removed in json 3.0.0", uplevel: 1, category: :deprecated
else
warn "Kernel#jj is deprecated and will be removed in json 3.0.0", uplevel: 1
end
objs.each do |obj|
puts JSON.pretty_generate(obj, :allow_nan => true, :max_nesting => false)
end
nil
end
Outputs objs to STDOUT as JSON strings in a pretty format, with indentation and over many lines.