* ext/json: import JSON v 1.1.3.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-09-20 17:41:14 +00:00
parent a91cd48aa1
commit e8eb95ec33
21 changed files with 501 additions and 430 deletions

View file

@ -2,7 +2,7 @@ require 'json/version'
module JSON
class << self
# If _object_ is string like parse the string and return the parsed result
# If _object_ is string-like parse the string and return the parsed result
# as a Ruby data structure. Otherwise generate a JSON text from the Ruby
# data structure object and return it.
#
@ -184,7 +184,8 @@ module JSON
end
# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
# I want to deprecate these later, so I'll first be silent about them, and
# later delete them.
alias unparse generate
module_function :unparse
# :startdoc:
@ -238,7 +239,7 @@ module JSON
# :startdoc:
# Load a ruby data structure from a JSON _source_ and return it. A source can
# either be a string like object, an IO like object, or an object responding
# either be a string-like object, an IO like object, or an object responding
# to the read method. If _proc_ was given, it will be called with any nested
# Ruby object as an argument recursively in depth first order.
#
@ -327,7 +328,7 @@ module ::Kernel
nil
end
# If _object_ is string like parse the string and return the parsed result as
# If _object_ is string-like parse the string and return the parsed result as
# a Ruby data structure. Otherwise generate a JSON text from the Ruby data
# structure object and return it.
#
@ -351,4 +352,3 @@ class ::Class
respond_to?(:json_create)
end
end
# vim: set et sw=2 ts=2: