code: def strip_comments(string, comment_symbols=frozenset(('#', '//'))):
      
      lines = string.splitlines()
      for k in range(len(lines)):
          for symbol in comment_symbols:
              lines[k] = strip_comment_line_with_symbol(lines[k], start=symbol)
      return '\n'.join(lines)
docs: Strip comments from json string.
  
      :param string: A string containing json with comments started by comment_symbols.
      :param comment_symbols: Iterable of symbols that start a line comment (default # or //).
      :return: The string with the comments removed.