Filters comment-like keywords from JSON content.
LLMs and debug outputs sometimes include placeholder keywords like COMMENT, SHOULD_NOT_EXIST, DEBUG_INFO, etc. This module detects and removes them.
Based on json_repair Python library (parse_string.py:450-456)
Performance optimized: Uses pre-compiled combined regex patterns instead of individual pattern matching per keyword (84 regex ops → 6 regex ops).
Summary
Functions
Remove comment-like keywords from JSON content. Returns {filtered_content, repairs}.