[Bug #1768] json $B$G(B Kernel $B$KDI2C$5$l$k%a%=%C%I$O(B private $B$G$"$k$Y$-(B

Bug #1768: json e$B$Ge(B Kernel e$B$KDI2C$5$l$k%a%=%C%I$Oe(B private
e$B$G$"$k$Y$-e(B
http://redmine.ruby-lang.org/issues/show/1768

e$B5/I<<Te(B: okkez _
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: ext, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2009-07-13 trunk 24067) [x86_64-linux]

json e$B%i%$%V%i%j$Ge(B Kernel e$B%b%8%e!<%k$KDI2C$5$l$k%a%=%C%I$Oe(B
private instance methods e$B$G$"$k$Y$-$@$H;W$$$^$9!#e(B

Index: json/lib/json/common.rb

— json/lib/json/common.rb (revision 24081)
+++ json/lib/json/common.rb (working copy)
@@ -310,6 +310,7 @@
end

module ::Kernel

  • private

    Outputs objs to STDOUT as JSON strings in the shortest form, that

is in

one line.

def j(*objs)