diff --git a/ext/json/lib/json.rb b/ext/json/lib/json.rb index ec9b571be2..151d9c2f26 100644 --- a/ext/json/lib/json.rb +++ b/ext/json/lib/json.rb @@ -45,7 +45,7 @@ require 'json/common' # Or an alternative way: # # require 'json' -# puts {:hello => "goodbye"}.to_json # => "{\"hello\":\"goodbye\"}" +# puts({:hello => "goodbye"}.to_json) # => "{\"hello\":\"goodbye\"}" # # JSON.generate only allows objects or arrays to be converted # to JSON syntax. to_json, however, accepts many Ruby classes @@ -53,7 +53,7 @@ require 'json/common' # # require 'json' # -# 1.to_json => "1" +# 1.to_json # => "1" # # The {#generate}[rdoc-ref:JSON#generate] method accepts a variety of options # to set the formatting of string output and defining what input is accepteable.