Choose the grammar first
Strict JSON is the initial mode. JSONC permits line and block comments, but still rejects trailing commas. Switching modes invalidates the report immediately, so a previous result cannot be mistaken for a check under the new rules.