.JSONC 文件扩展名
JSON With Comments File
| 开发者 | 不适用 |
| 受欢迎程度 |
4.0 | 4 票 |
什么是 JSONC 文件?
A JSONC file is a JSON file that includes comments. Several developers have independently created variants of the JSONC format. The most popular variant is developed and maintained by Microsoft.
更多信息
Comments are explanatory lines of text that are ignored when a program parses a source code or data file. By default, the .JSON format does not support comments. However, because comments can be useful for explaining why a file is structured the way it is, various developers have sought to add comment support to JSON. These developers typically call the resulting format JSONC, or JSON With Comments.
For example, Microsoft Visual Studio Code includes a JSON With Comments mode, which is used primarily to edit the program's configuration files. This allows users to add single line (//) or block (/* */) comments. Developers Michael Gross and Muhammad Muzzail have also developed their own JSONC formats, which use similar implementations.
如何打开 JSONC 文件
You can open a JSONC file in Microsoft Visual Studio Code (multiplatform), GitHub Atom (multiplatform), or any other text or source code editor, to view or edit the data it contains.
