Sha256: af208ec30aa3dfeafd473437c48fc9ec65323cf799903742d72f9caa188a13fb
Contents?: true
Size: 286 Bytes
Versions: 1
Compression:
Stored size: 286 Bytes
Contents
require 'oj' module Ougai::Serializers class JsonOj < Ougai::Serializer OJ_OPTIONS = { mode: :custom, time_format: :xmlschema, use_as_json: true, use_to_hash: true, use_to_json: true } def serialize(data) Oj.dump(data, OJ_OPTIONS) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ougai-1.6.6 | lib/ougai/serializers/json_oj.rb |