주요 콘텐츠

JSON 형식

JSON(JavaScript® Object Notation) 형식

JSON(JavaScript Object Notation)은 JavaScript 프로그래밍 언어를 기반으로 하는 데이터 상호 교환 형식입니다. MATLAB®에서 JSON 형식 텍스트를 디코딩하고 인코딩할 수 있습니다. JSON 파일의 데이터를 MATLAB에 구조체 (R2023b 이후), 사전 (R2024b 이후), table형 (R2026a 이후), timetable형 (R2026a 이후) 등으로 가져올 수도 있습니다. 구조체, 사전, table형, timetable형 콘텐츠를 JSON 파일에 쓸 수 있습니다.

함수

모두 확장

jsondecodeJSON 형식 텍스트 디코딩
jsonencodeMATLAB 정형 데이터로부터 JSON 형식의 텍스트 생성
readstructCreate structure array from file
writestructWrite structure array to file
readdictionaryCreate dictionary from file (R2024b 이후)
writedictionaryWrite dictionary to file (R2024b 이후)
readtable파일에서 테이블 만들기
writetable파일에 테이블 쓰기
readtimetableCreate timetable from file
writetimetable파일에 타임테이블 쓰기
detectImportOptions파일 내용에 따라 가져오기 옵션 생성
jsonImportOptionsImport options object for JSON files (R2026a 이후)
getvaropts변수에 대한 가져오기 옵션 가져오기
setvaropts변수에 대한 가져오기 옵션 설정
setvartype변수 데이터형 설정

도움말 항목