Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
oj / test / example.rb
Size: Mime:
%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