diff --git a/cJSON.c b/cJSON.c index 88c2d95b..73c8a1ce 100644 --- a/cJSON.c +++ b/cJSON.c @@ -2913,6 +2913,10 @@ static void minify_string(char **input, char **output) { *input += static_strlen("\""); *output += static_strlen("\""); return; + } else if (((*input)[0] == '\\') && ((*input)[1] == '\\')) { + (*output)[1] = (*input)[1]; + *input += static_strlen("\\"); + *output += static_strlen("\\"); } else if (((*input)[0] == '\\') && ((*input)[1] == '\"')) { (*output)[1] = (*input)[1]; *input += static_strlen("\"");