JSON-Format
JavaScript®-Object-Notation-Format
JavaScript Object Notation (JSON) ist ein Datenaustauschformat auf Basis der Programmiersprache JavaScript. Sie können JSON-formatierten Text dekodieren und kodieren. Sie können auch Daten aus einer JSON-Datei als Struktur (seit R2023b) oder Wörterbuch (seit R2024b) in MATLAB® importieren. Sie können den Inhalt einer Struktur oder eines Wörterbuchs in eine JSON-Datei schreiben.
Funktionen
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 (Seit R2024b) |
writedictionary | Write dictionary to file (Seit R2024b) |
Themen
- Customize JSON Encoding for MATLAB Classes
How to override the
jsonencode
function for user-defined classes.