bencview.rb
def to_json
    Bencview.hash_walk(@input) do |str|
      begin
        str.to_json
      rescue
        next Base64.strict_encode64 str
      end
      str
    end.to_json
  end
# walk through object, return a hash suitable for JSON.stringify
walk through object, return a hash suitable for JSON.stringify
walk through object return a hash suitable for JSON . stringify
def to_json
    Bencview.hash_walk(@input) do |str|
      begin
        str.to_json
      rescue
        next Base64.strict_encode64 str
      end
      str
    end.to_json
  end
def to_json Bencview . hash_walk ( @input ) do | str | begin str . to_json rescue next Base64 . strict_encode64 str end str end . to_json end
walk through object, return a hash suitable for JSON.stringify
walk through object return a hash suitable for JSON . stringify