Sha256: a0601486aaa73e0f275c9aeb1593cd429b07badff52cb1ceefd909af8848a8f8
Contents?: true
Size: 319 Bytes
Versions: 3
Compression:
Stored size: 319 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
legion-json-0.1.6 | lib/legion/json/oj.rb |
legion-json-0.1.2 | lib/legion/json/oj.rb |
legion-json-0.1.1 | lib/legion/json/oj.rb |