.JSON5 File Extension

JSON5 Data File

Developer Aseem Kishore and Jordan Tucker
Popularity
3.5  |  2 Votes
 

What is a JSON5 file?

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.

More Information

Screenshot of a .json5 file in Microsoft Visual Studio Code
JSON5 file open in Microsoft Visual Studio Code

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.

How to open a JSON5 file

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

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open JSON5 files

Category: Web Files
Updated: September 14, 2023

Verified by FileInfo.com

The FileInfo.com team has independently researched the JSON5 Data file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.