Hi there, I am new at working with .json files and I am trying to open the data from an IMU. I using the code below, however, when using the jsondecode function I keep getting the following error "Error using jsoncode JSON syntaz error at line 2, column 1 (character 634) extra text". The line and column and character differ depending on the file, but cannot find what ios the "extra text". Any ideas how to solve the problem?
fileName = '20201108T225105Z_180230000291_gyro_stream.json';
fid = fopen(fileName);
raw = fread(fid,inf);
str = char(raw');
data = jsondecode(str);