Skip to content

Commit

Permalink
support saving function handles, close #51
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 13, 2019
1 parent a8fde38 commit 9c01046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions savejson.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@
else
txt=matlabobject2json(name,item,level,varargin{:});
end
elseif(isa(item,'function_handle'))
txt=struct2json(name,functions(item),level,varargin{:});
else
txt=mat2json(name,item,level,varargin{:});
end
Expand Down

0 comments on commit 9c01046

Please sign in to comment.