.json JSON document
Text & source code
| MIME type | application/json application/schema+json |
|---|---|
| Description | JSON document |
| Acronym | JSON – JavaScript Object Notation |
| Category | Text & source code |
| Based on | application/json5 |
Frequently asked questions
What is a .json file?
The .json extension is used for several formats: JSON document (application/json) and JSON schema (application/schema+json). JSON stands for JavaScript Object Notation.
How do I open a .json 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 .json 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.json shows the guessed type.
Which format is .json based on?
Technically a .json file is a subtype of “JSON5 document” (application/json5), so programs for that base format can often read it too.
Which MIME type belongs to .json?
The MIME type is application/json. In the Apache web server: AddType application/json .json; in nginx: types { application/json json; }.