Specialized parser for edit_file arguments when JSON parsing fails.
Models often generate old_string/new_string with unescaped quotes/newlines.
This parser uses the known field order to extract content by position.
Last-resort: extract ALL key-value pairs from malformed JSON by string matching.
Tool-agnostic — no hardcoded field lists. Finds any "key": "value" or key: value pattern.