Sha256: b170814b0b33030be0457d5ea70137337736a6eaa3ba6d05f48cda5f8c39e836

Contents?: true

Size: 196 Bytes

Versions: 3

Compression:

Stored size: 196 Bytes

Contents

module SearchFlip
  class JSON
    def self.generate(obj)
      Oj.dump(obj, mode: :custom, use_to_json: true)
    end

    def self.parse(str)
      Oj.load(str, mode: :compat)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
search_flip-4.0.0.beta3 lib/search_flip/json.rb
search_flip-4.0.0.beta2 lib/search_flip/json.rb
search_flip-4.0.0.beta1 lib/search_flip/json.rb