Methods

Kernel

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.