Skip to content

Commit 34284c7

Browse files
committed
fix issues #34 #39 #44 and #45, support double-quited strings
1 parent 474d8c8 commit 34284c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

savejson.m

+2
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@
171171
txt=struct2json(name,item,level,varargin{:});
172172
elseif(ischar(item))
173173
txt=str2json(name,item,level,varargin{:});
174+
elseif(isa(item,'string'))
175+
txt=str2json(name,item{:},level,varargin{:});
174176
elseif(isobject(item))
175177
txt=matlabobject2json(name,item,level,varargin{:});
176178
else

0 commit comments

Comments
 (0)