module Puma::JSONSerialization

def serialize_string(output, value)

def serialize_string(output, value)
  output << '"'
  output << value.gsub(CHAR_TO_ESCAPE) do |character|
    case character
    when BACKSLASH
      '\\\\'
    when QUOTE
      '\\"'
    when CONTROL_CHAR_TO_ESCAPE
      '\u%.4X' % character.ord
    end
  end
  output << '"'
end