lib/search_flip/json.rb in search_flip-4.0.0.beta vs lib/search_flip/json.rb in search_flip-4.0.0.beta1
- old
+ new
@@ -3,9 +3,9 @@
def self.generate(obj)
Oj.dump(obj, mode: :custom, use_to_json: true)
end
def self.parse(str)
- Oj.load(str)
+ Oj.load(str, mode: :compat)
end
end
end