Format JSON
Format JSON (JavaScript® Object Notation)
JavaScript Object Notation (JSON) est un format d’échange de données basé sur le langage de programmation JavaScript. Vous pouvez décoder et encoder du texte au format JSON. Vous pouvez également importer les données d’un fichier JSON dans MATLAB® sous forme de structure (depuis R2023b) ou de dictionnaire (depuis R2024b). Vous pouvez également écrire le contenu d’une structure ou d’un dictionnaire dans un fichier JSON.
Fonctions
jsondecode | Decode JSON-formatted text |
jsonencode | Create JSON-formatted text from structured MATLAB data |
readstruct | Create structure array from file |
writestruct | Write structure array to file |
readdictionary | Create dictionary from file (depuis R2024b) |
writedictionary | Write dictionary to file (depuis R2024b) |
Rubriques
- Customize JSON Encoding for MATLAB Classes
How to override the
jsonencodefunction for user-defined classes.