From 3a81c3d55a1850c112120ac088a755524f4e3b15 Mon Sep 17 00:00:00 2001 From: gllmflndn Date: Wed, 31 May 2017 11:55:34 +0100 Subject: [PATCH] Compatibility: do not escape forward slashes, see issue #1 --- jsonwrite.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonwrite.m b/jsonwrite.m index a01d1f6..f5cd9a2 100644 --- a/jsonwrite.m +++ b/jsonwrite.m @@ -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 @@ -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');