mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
fe10323a35
commit
99980b3034
2 changed files with 3 additions and 28 deletions
|
@ -150,8 +150,8 @@ require 'json/common'
|
|||
#
|
||||
# When the source is a Ruby \Integer or \Float, JSON.generate returns
|
||||
# a \String containing a \JSON number:
|
||||
# JSON.generate(Integer(0)) # => "0""
|
||||
# JSON.generate(Float(1.0)) # => "1.0"
|
||||
# JSON.generate(42) # => "42"
|
||||
# JSON.generate(0.42) # => "0.42"
|
||||
#
|
||||
# When the source is a Ruby \String, JSON.generate returns
|
||||
# a \String containing a \JSON string (with double-quotes):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue