Module: JSON
- Defined in:
- lib/rapidjson/json_gem.rb
Class Method Summary collapse
Class Method Details
.dump(obj) ⇒ Object
20 21 22 |
# File 'lib/rapidjson/json_gem.rb', line 20 def self.dump(obj) RapidJSON.encode(obj) end |
.generate(obj, opts = nil) ⇒ Object
12 13 14 |
# File 'lib/rapidjson/json_gem.rb', line 12 def self.generate(obj, opts=nil) RapidJSON.encode(obj) end |
.pretty_generate(obj, opts = nil) ⇒ Object
16 17 18 |
# File 'lib/rapidjson/json_gem.rb', line 16 def self.pretty_generate(obj, opts=nil) RapidJSON.pretty_encode(obj) end |