Methods

Kernel

Public Instance Methods

JSON(object, opts = {}) click to toggle source
    # File lib/yajl/json_gem.rb, line 7
 7:   def JSON(object, opts = {})
 8:     if object.respond_to? :to_s
 9:       JSON.parse(object.to_s, JSON.default_options.merge(opts))
10:     else
11:       JSON.generate(object, opts)
12:     end
13:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.