Hauptinhalt

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

jsondecodeDecode JSON-formatted text
jsonencodeCreate JSON-formatted text from structured MATLAB data
readstructCreate structure array from file
writestructWrite structure array to file
readdictionaryCreate dictionary from file (Seit R2024b)
writedictionaryWrite dictionary to file (Seit R2024b)

Themen