We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1602c60 commit 0c8f75fCopy full SHA for 0c8f75f
1 file changed
lib/multi_json/adapters/oj.rb
@@ -13,6 +13,7 @@ def self.load(string, options={}) #:nodoc:
13
end
14
15
def self.dump(object, options={}) #:nodoc:
16
+ options.merge!(:indent => 2) if options[:pretty] || options['pretty']
17
::Oj.dump(object, options)
18
19
0 commit comments