Sha256: db8ad07233a8c06bda1cd63a5a1fe628c234e83c53fd0a6a054ff16e1f4cef36
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
require 'oj' Oj.default_options = { mode: :compat } module Legion module JSON # The Legion JSON parser when running on MRI. class Oj def load(string) ::Oj.load(string, symbol_keys: true) end def dump(object, options = {}) options[:indent] = 2 if options[:pretty] ::Oj.dump(object, options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
legion-json-0.1.0 | lib/legion/json/oj.rb |