Sha256: bdf99e73dda3544e009a129360e0b169ddaa0990f9ff0411986257656ef18c60

Contents?: true

Size: 247 Bytes

Versions: 32

Compression:

Stored size: 247 Bytes

Contents

%w(lib ext test).each do |dir|
  $LOAD_PATH.unshift File.expand_path("../../#{dir}", __FILE__)
end
require 'oj'
require 'json'
 
Oj::Doc.open([{:name => "T-Shirt"}].to_json) do |doc|
  doc.each_child do |child|
    p child.fetch("name")
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
oj-3.7.6 test/example.rb
oj-2.18.5 test/example.rb
oj-2.18.4 test/example.rb
oj-2.18.3 test/example.rb
oj-2.18.2 test/example.rb
oj-2.18.1 test/example.rb
oj-2.18.0 test/example.rb
oj-2.17.5 test/example.rb
oj-2.17.3 test/example.rb
oj-2.17.2 test/example.rb
oj-2.17.1 test/example.rb
oj-2.17.0 test/example.rb
oj-2.16.1 test/example.rb
oj-2.14.6 test/example.rb
oj-2.14.5 test/example.rb
oj-2.14.4 test/example.rb
oj-2.14.3 test/example.rb
oj-2.14.2 test/example.rb
oj-2.14.1 test/example.rb
oj-2.14.0 test/example.rb