Skip to content

Commit 0c8f75f

Browse files
committed
Add pretty support to Oj adapter
Fixes #51.
1 parent 1602c60 commit 0c8f75f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • lib/multi_json/adapters

lib/multi_json/adapters/oj.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def self.load(string, options={}) #:nodoc:
1313
end
1414

1515
def self.dump(object, options={}) #:nodoc:
16+
options.merge!(:indent => 2) if options[:pretty] || options['pretty']
1617
::Oj.dump(object, options)
1718
end
1819
end

0 commit comments

Comments
 (0)