JsonRemedy.Layer3.KeywordFilter (JsonRemedy v0.1.11)

View Source

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)

Summary

Functions

Remove comment-like keywords from JSON content. Returns {filtered_content, repairs}.

Functions

filter_keywords(content)

@spec filter_keywords(String.t()) :: {String.t(), list()}

Remove comment-like keywords from JSON content. Returns {filtered_content, repairs}.