Sha256: 615807fc16901c5328669ce9a39c8cd137e0e19cb0e491f33ff50b25102441f3
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 %w(lib ext test).each do |dir| $LOAD_PATH.unshift File.expand_path("../../#{dir}", __FILE__) end require 'rails' require 'active_support' require 'active_support/json' require 'oj' x = {"a": BigDecimal("1.1"), "t": Time.now} #ActiveSupport.encode_big_decimal_as_string = false Oj.optimize_rails puts "to_json #{x.to_json}" Oj.default_options = { bigdecimal_as_decimal: true} #puts Oj.default_options puts "to_json #{x.to_json}"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oj-3.7.10 | test/bug.rb |
oj-3.6.6 | test/bug.rb |
oj-3.3.10 | test/bug.rb |