Edit JSON and JSONC files while preserving whitespace, comments, and formatting for accurate and minimal changes.