Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Kernel#jj
(*::_ToJson) -> nil
jj(*objs)
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/ext/json/lib/json/common.rb, line 860
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.