json reading and writing in MATLAB

Example from mathworks

jsonText = fileread('Portfolio.json');
% Convert JSON formatted text to MATLAB data types (3x1 cell array in this example)
jsonData = jsondecode(jsonText);

 

Works in CSPM:

Â