You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error using savejson>matlabobject2json (line 444)
You cannot subscript a table using only one subscript. Table subscripting requires both row and variable subscripts.
Error in savejson>obj2json (line 175)
txt=matlabobject2json(name,item,level,varargin{:});
Error in savejson>struct2json (line 285)
txt{end+1}=obj2json(names{e},item(i,j).(names{e}),...
Error in savejson>obj2json (line 171)
txt=struct2json(name,item,level,varargin{:});
Error in savejson (line 140)
json=obj2json(rootname,obj,rootlevel,opt);
I hacked a solution, but I'm not sure if this leads to more issues with other files. See attached.
sorry @pjkoprowski and @hillsm for the long delay in processing this issue. I patched savejson with Paul's patch, and I also added support for RowNames, but in the current code, neither the VariableNames nor RowNames allows to have space or other non-variable-name strings.
In the future, need to move valid_field() from loadjson to a separate unit and use it to convert Table name fields.
@fangq
An indexing error occurs when parsing table data using savejson.m
For instance, if one calls the following:
>> j = savejson('test_data', open('census1994.mat'), 'test.json');
you get the following error:
I hacked a solution, but I'm not sure if this leads to more issues with other files. See attached.
Cheers,
Paul
paul_savejson.txt
The text was updated successfully, but these errors were encountered: