def strip_comments(string, comment_symbols=frozenset(('<STR_LIT:#>', '<STR_LIT>'))):
lines = string.splitlines()<EOL>for k in range(len(lines)):<EOL><INDENT>for symbol in comment_symbols:<EOL><INDENT>lines[k] = strip_comment_line_with_symbol(lines[k], start=symbol)<EOL><DEDENT><DEDENT>return '<STR_LIT:\n>'.join(lines)<EOL>
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.