Parse JSON safely with automatic repair for truncated/malformed responses
Source:R/03_json_utils.R
parse_json_safely.RdTries standard parsing first, then progressively more aggressive repair strategies. Returns NULL (not an error) when all strategies fail.