<Toplevel Module>
<Built-in Module>
String
Access
ActiveSupport::CoreExtensions::String
Behavior
Conversions
Filters
Inflections
Iterators
Multibyte
StartsEndsWith
Object
Builtin-Module
to_json
as_json
1 class String 2 def to_json(options = nil) #:nodoc: 3 ActiveSupport::JSON::Encoding.escape(self) 4 end 5 6 def as_json(options = nil) #:nodoc: 7 self 8 end 9 end