End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Kernel#jj
jj(*objs)
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/json/lib/json/common.rb, line 672
def jj(*objs)
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.