.json5 JSON5 document

Text & source code

MIME typeapplication/json5
DescriptionJSON5 document
AcronymJSON5 – JavaScript Object Notation 5
CategoryText & source code
Based ontext/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; }.

Nearby entries