creating an empty json file

조회 수: 33 (최근 30일)
Deepa Maheshvare
Deepa Maheshvare . 2020년 11월 5일
답변: Abhisek Pradhan . 2020년 11월 10일
Hi All,
I would like to know how to create an empty json file in MATLAB.
  댓글 수: 1
Rik 2020년 11월 5일
JSON is an interpretation of text. How would you write an empty JSON object? And do you know how to write to a file?

댓글을 달려면 로그인하십시오.

답변 (1개)

Abhisek Pradhan
Abhisek Pradhan 2020년 11월 10일
jsonencode can be used to create JSON-formatted text from structured MATLAB data and it can be saved to workspace. Here is a link to save JSON text from workspace to directory.
Below are few links which may be helpful -


Help CenterFile Exchange에서 JSON Format에 대해 자세히 알아보기





Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by