.JSON5 文件扩展名

JSON5 Data File

开发者 Aseem Kishore and Jordan Tucker
受欢迎程度
4.0  |  3 
 

什么是 JSON5 文件?

A JSON5 file contains data saved in the JSON5 Data Interchange Format. The JSON5 format is an extension of JSON. It includes some aspects of ECMAScript 5.1 syntax, to make data more human-readable.

更多信息

在 Microsoft Visual Studio Code 中打开的 .json5 文件截图
在 Microsoft Visual Studio Code 中打开的 JSON5 文件

JSON is a text-based data interchange format used primarily by web developers. While .JSON files are human-readable, the developers of JSON5 felt the JSON format could be modified to make manually writing, reading, and maintaining JSON data easier.

To do this, the JSON5 team added several features of ECMAScript 5.1 to the standard JSON format. Some of these features include:

  • Objects and arrays may have a single trailing comma
  • Strings may be single-quoted, span multiple lines, and include character escapes
  • Numbers may be hexadecimal, have a leading or trailing decimal point, and begin with an explicit plus sign
  • Single-line comments, multi-line comments, and white space characters are allowed

Because JSON5 is a superset of JSON, all JSON files are valid JSON5 files. Additionally, because JSON5 is a subset of ECMAScript 5.1, most JSON5 files are valid ECMAScript 5.1 files.

如何打开 JSON5 文件

You can open and edit a JSON5 file with Microsoft Visual Studio Code, Brackets, Notepad++, or any other text or source code editor.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 JSON5 文件的程序

分类: 网页
更新时间: 2023-09-14

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 JSON5 Data 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们