Sha256: a740f67bc99fdf8a8d1a680ab076a0e6cbbf4b8c7d577947225ee3762c6a3e44
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
module SearchFlip class JSON @default_options = { mode: :custom, use_to_json: true, time_format: :xmlschema, bigdecimal_as_decimal: false } def self.default_options @default_options end def self.generate(obj) Oj.dump(obj, default_options) end def self.parse(json) Oj.load(json, default_options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
search_flip-4.0.0.beta5 | lib/search_flip/json.rb |