diff --git a/matlab/loadjson_.m b/matlab/loadjson_.m index 2767c50a7..7daeffd49 100644 --- a/matlab/loadjson_.m +++ b/matlab/loadjson_.m @@ -36,5 +36,11 @@ if isoctave() || matlab_ver_less_than('9.1') end json = fileread(jsonfilename); + +% Remove some escape characters that cannot be interpreted by jsondecode +json = strrep(json, '\w', '\\w'); +json = strrep(json, '\_', '\\_'); +json = strrep(json, '\\\_', '\\_'); + o = jsondecode(json); clear('json'); o = convertjsondecode(o); \ No newline at end of file diff --git a/preprocessor b/preprocessor index 985d74238..88830aa0e 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit 985d74238170a06509c7239ba1df48b0d645ff6f +Subproject commit 88830aa0e64e2161eb7cfceb294e487b6935a76c