Class: SearchFlip::JSON
- Inherits:
-
Object
- Object
- SearchFlip::JSON
- Defined in:
- lib/search_flip/json.rb
Class Method Summary collapse
Class Method Details
.generate(obj) ⇒ Object
3 4 5 |
# File 'lib/search_flip/json.rb', line 3 def self.generate(obj) Oj.dump(obj, SearchFlip::Config[:json_options]) end |
.parse(json) ⇒ Object
7 8 9 |
# File 'lib/search_flip/json.rb', line 7 def self.parse(json) ::JSON.parse(json) end |