Contenido principal

Formato JSON

Formato de notación de objeto JavaScript®

JavaScript Object Notation (JSON) es un formato de intercambio de datos basado en el lenguaje de programación JavaScript. En MATLAB®, puede descodificar y codificar texto con formato JSON. También puede importar datos de un archivo JSON a MATLAB como una estructura (desde R2023b), diccionario (desde R2024b), tabla (desde R2026a) u horario (desde R2026a). Puede escribir el contenido de una estructura, diccionario, tabla u horario en un archivo JSON.

Funciones

expandir todo

jsondecodeDescodificar texto con formato JSON
jsonencodeCreate JSON-formatted text from structured MATLAB data
readstructCreate structure array from file
writestructWrite structure array to file
readdictionaryCreate dictionary from file (Desde R2024b)
writedictionaryWrite dictionary to file (Desde R2024b)
readtableCreate table from file
writetableEscribir una tabla en un archivo
readtimetableCreate timetable from file
writetimetableWrite timetable to file
detectImportOptionsCreate import options based on file content
jsonImportOptionsImport options object for JSON files (Desde R2026a)
getvaroptsGet variable import options
setvaroptsSet variable import options
setvartypeSet variable data types

Temas