You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: json_with_comments.rb
    path of file: ./repos/hound/app/models/config
    
    the code of the file until where you have to start completion: module Config
  class JsonWithComments
    SINGLE_LINE
    
    def without_comments
      inside_comment = false
      inside_string = false
      result = ""
      offset = 0

      content.each_char.with_index do |current_char, index|
        next_char = content[index + 1]
        fragment = "#{current_char}#{next_char}"

        if !inside_comment && current_char == '"'
          escaped = content[index - 1] == '\\' && content[index - 2] != '\\'

          unless escaped
            inside_string = !inside_string
          end
        end