/usr/share/doc/ruby-yajl/examples/parsing/from_file.rb is in ruby-yajl 1.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')
require 'yajl'
unless file = ARGV[0]
puts "\nUsage: ruby examples/from_file.rb benchmark/subjects/item.json\n\n"
exit(0)
end
json = File.new(file, 'r')
hash = Yajl::Parser.parse(json)
puts hash.inspect
|