In VS Code, disable error “Comments are not permitted in JSON”

Follow these steps:

  1. Click on the letters JSON in the bottom right corner. (A drop-down will appear to “Select the Language Mode.”)
  2. Select “Configure File Association for ‘.json’…”

enter image description here

  1. Type jsonc and press Enter.

enter image description here

If you only want to disable the error message for a single file, skip step #2.

Leave a Comment