Hackfut Security File Manager
Current Path:
/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/oj-3.7.12/lib/oj
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.4.0
/
gems
/
oj-3.7.12
/
lib
/
oj
/
📁
..
📄
active_support_helper.rb
(1.02 KB)
📄
bag.rb
(3.35 KB)
📄
easy_hash.rb
(1.92 KB)
📄
error.rb
(630 B)
📄
json.rb
(5.52 KB)
📄
mimic.rb
(7.35 KB)
📄
oj.so
(1.08 MB)
📄
saj.rb
(1.5 KB)
📄
schandler.rb
(3.87 KB)
📄
state.rb
(4.21 KB)
📄
version.rb
(71 B)
Editing: saj.rb
module Oj # A SAX style parse handler for JSON hence the acronym SAJ for Simple API for # JSON. The Oj::Saj handler class should be subclassed and then used with the # Oj::Saj key_parse() method. The Saj methods will then be called as the file # is parsed. # # @example # # require 'oj' # # class MySaj < ::Oj::Saj # def initialize() # @hash_cnt = 0 # end # # def hash_start(key) # @hash_cnt += 1 # end # end # # cnt = MySaj.new() # File.open('any.json', 'r') do |f| # Oj.saj_parse(cnt, f) # end # # To make the desired methods active while parsing the desired method should # be made public in the subclasses. If the methods remain private they will # not be called during parsing. # # def hash_start(key); end # def hash_end(key); end # def array_start(key); end # def array_end(key); end # def add_value(value, key); end # def error(message, line, column); end # class Saj # Create a new instance of the Saj handler class. def initialize() end # To make the desired methods active while parsing the desired method should # be made public in the subclasses. If the methods remain private they will # not be called during parsing. private def hash_start(key) end def hash_end(key) end def array_start(key) end def array_end(key) end def add_value(value, key) end def error(message, line, column) end end # Saj end # Oj
Upload File
Create Folder