Method: Kernel#j
- Defined in:
- lib/extensions/json/json/common.rb
#j(*objs) ⇒ Object
Outputs objs to STDOUT as JSON strings in the shortest form, that is in one line.
319 320 321 322 323 324 |
# File 'lib/extensions/json/json/common.rb', line 319 def j(*objs) objs.each do |obj| puts JSON::generate(obj, :allow_nan => true, :max_nesting => false) end nil end |