File: active_support/json/encoders/string.rb

Overview
Module Structure
Class Hierarchy
Code

Overview

Class Hierarchy

Object ( Builtin-Module )
  String    #1

Code

   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