How to extract and open Json file in folder.
Mostra commenti meno recenti
Dear All,
I have Json file in folder as attached. But, I tried to extract and open, it failed.
Some can help me?
2 Commenti
Epsilon
il 18 Set 2024
Please refer to the answer: https://www.mathworks.com/matlabcentral/answers/326764-how-can-i-read-a-json-file
If you are still facing issues, feel free to reply.
Walter Roberson
il 18 Set 2024
You have to start by doing
S = fileread(' DVK_Cu-64_0.1_adipose.json.zip');
T = jsondecode(S);
bytearray = matlab.net.base64decode(T.base64_zip_o__);
fid = fopen('test.zip', 'w');
fwrite(fid, bytearray);
fclose(fid)
This will give you a file test.zip that is in zip format.
Unfortunately it is corrupted zip format, and it is not clear how to get further than this.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su JSON Format in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!