.json5 JSON5 document
Text & source code
| MIME type | application/json5 |
|---|---|
| Description | JSON5 document |
| Acronym | JSON5 – JavaScript Object Notation 5 |
| Category | Text & source code |
| Based on | text/javascript |
Frequently asked questions
What is a .json5 file?
A .json5 file is a “JSON5 document” (MIME type application/json5). JSON5 stands for JavaScript Object Notation 5.
How do I open a .json5 file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .json5 file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.json5 shows the guessed type.
Which format is .json5 based on?
Technically a .json5 file is a subtype of “JavaScript program” (text/javascript), so programs for that base format can often read it too.
Which MIME type belongs to .json5?
The MIME type is application/json5. In the Apache web server: AddType application/json5 .json5; in nginx: types { application/json5 json5; }.