module ActiveSupport::JSON::Encoding

def escape_html_entities_in_json=(value)

def escape_html_entities_in_json=(value)
  self.escape_regex = \
    if @escape_html_entities_in_json = value
      /[\x00-\x1F"\\><&]/
    else
      /[\x00-\x1F"\\]/
    end
end