lib/search_flip/json.rb in search_flip-3.9.0 vs lib/search_flip/json.rb in search_flip-4.0.0.beta

- old
+ new

@@ -1,11 +1,11 @@ module SearchFlip class JSON def self.generate(obj) - Oj.dump(obj, SearchFlip::Config[:json_options]) + Oj.dump(obj, mode: :custom, use_to_json: true) end - def self.parse(json) - ::JSON.parse(json) + def self.parse(str) + Oj.load(str) end end end