Skip to content

Commit

Permalink
Compatibility: do not escape forward slashes, see issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
gllmflndn committed May 31, 2017
1 parent d8efb87 commit 3a81c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsonwrite.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
% JSON Standard: http://www.json.org/

% Guillaume Flandin
% $Id: jsonwrite.m 7044 2017-03-16 13:00:09Z guillaume $
% $Id: jsonwrite.m 7053 2017-04-03 11:04:13Z guillaume $


%-Input parameters
Expand Down Expand Up @@ -169,7 +169,7 @@
% \" \\ \/ \b \f \n \r \t \u four-hex-digits
json = strrep(json,'\','\\');
json = strrep(json,'"','\"');
json = strrep(json,'/','\/');
%json = strrep(json,'/','\/');
json = strrep(json,sprintf('\b'),'\b');
json = strrep(json,sprintf('\f'),'\f');
json = strrep(json,sprintf('\n'),'\n');
Expand Down

0 comments on commit 3a81c3d

Please sign in to comment.