.json-patch correctif JSON
Texte et code source
| Type MIME | application/json-patch+json |
|---|---|
| Description | correctif JSON |
| Sigle | JSON – JavaScript Object Notation |
| Catégorie | Texte et code source |
| Basé sur | application/json |
Questions fréquentes
Qu’est-ce qu’un fichier .json-patch ?
Un fichier .json-patch est un format de type « correctif JSON » (type MIME application/json-patch+json). JSON signifie JavaScript Object Notation.
Comment ouvrir un fichier .json-patch ?
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-patch ?
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-patch affiche le type supposé.
Sur quel format .json-patch est-il basé ?
Techniquement, un fichier .json-patch est un sous-type de « document JSON » (application/json) ; les programmes conçus pour ce format de base peuvent donc souvent le lire aussi.
Quel type MIME correspond à .json-patch ?
Le type MIME est application/json-patch+json. Dans le serveur web Apache : AddType application/json-patch+json .json-patch ; dans nginx : types { application/json-patch+json json-patch; }.