class SearchFlip::JSON

Public Class Methods

generate(obj) click to toggle source
# File lib/search_flip/json.rb, line 3
def self.generate(obj)
  Oj.dump(obj, SearchFlip::Config[:json_options])
end
parse(json) click to toggle source
# File lib/search_flip/json.rb, line 7
def self.parse(json)
  ::JSON.parse(json)
end