metasploit-framework/lib/active_support/json/encoders/string.rb

10 lines
162 B
Ruby
Raw Normal View History

class String
def to_json(options = nil) #:nodoc:
ActiveSupport::JSON::Encoding.escape(self)
end
def as_json(options = nil) #:nodoc:
self
end
end