[flori/json] Remove invalid JSON.generate description from JSON module rdoc
This text used to be true in older versions of json, but has not been true for a number of years (since json version 2 I think). https://github.com/flori/json/commit/373b633f38
This commit is contained in:
parent
33d866558b
commit
1658e6b5db
@ -44,14 +44,6 @@ require 'json/common'
|
|||||||
# require 'json'
|
# require 'json'
|
||||||
# puts {:hello => "goodbye"}.to_json => "{\"hello\":\"goodbye\"}"
|
# puts {:hello => "goodbye"}.to_json => "{\"hello\":\"goodbye\"}"
|
||||||
#
|
#
|
||||||
# <tt>JSON.generate</tt> only allows objects or arrays to be converted
|
|
||||||
# to JSON syntax. <tt>to_json</tt>, however, accepts many Ruby classes
|
|
||||||
# even though it acts only as a method for serialization:
|
|
||||||
#
|
|
||||||
# require 'json'
|
|
||||||
#
|
|
||||||
# 1.to_json => "1"
|
|
||||||
#
|
|
||||||
module JSON
|
module JSON
|
||||||
require 'json/version'
|
require 'json/version'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user