.json document JSON
Texte et code source
| Type MIME | application/json application/schema+json |
|---|---|
| Description | document JSON |
| Sigle | JSON – JavaScript Object Notation |
| Catégorie | Texte et code source |
| Basé sur | application/json5 |
Questions fréquentes
Qu’est-ce qu’un fichier .json ?
L’extension .json est utilisée par plusieurs formats : document JSON (application/json) et JSON schema (application/schema+json). JSON signifie JavaScript Object Notation.
Comment ouvrir un fichier .json ?
Avec n’importe quel éditeur de texte : Notepad++, Visual Studio Code, ou gedit et vim sous Linux. Le fichier contient du texte lisible, éventuellement du code source ou une configuration.
Comment reconnaître un vrai fichier .json ?
Aucune signature fixe en début de fichier n’est enregistrée pour ce format ; il est surtout reconnu par son extension. Sous Linux et macOS, file --mime-type example.json affiche le type supposé.
Sur quel format .json est-il basé ?
Techniquement, un fichier .json est un sous-type de « JSON5 document » (application/json5) ; les programmes conçus pour ce format de base peuvent donc souvent le lire aussi.
Quel type MIME correspond à .json ?
Le type MIME est application/json. Dans le serveur web Apache : AddType application/json .json ; dans nginx : types { application/json json; }.