Sha256: 363bd4d0be95409e84f90fb5fdc95409bc007157ad35b6e5a0ee1476346dc97b
Contents?: true
Size: 364 Bytes
Versions: 4
Compression:
Stored size: 364 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 $VERBOSE = true here = File.expand_path(File.dirname(__FILE__)) $: << File.dirname(__FILE__) $: << File.join(File.dirname(here), 'ext') $: << File.join(File.dirname(here), 'lib') require 'oj' Oj.mimic_JSON() class Foo def as_json { foo: 'bar' } end end opts = {} puts Foo.new.to_json puts Foo.new.to_json(opts)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
oj-2.18.5 | test/foo.rb |
oj-2.18.3 | test/foo.rb |
oj-2.18.0 | test/foo.rb |
oj-2.17.5 | test/foo.rb |