The first line of code replaces all double quotes in the variable body.MessageInResult with \". This is done to escape the double quotes and ensure the resulting string can be properly formatted as a JSON string.

The second line of code replaces all backslashes in the variable json1 with double backslashes \\\\. This is done to escape the backslashes and ensure the resulting string can be properly formatted as a JSON string.

string json1 = bodyMessageInResultReplace ; string json = json1Replace ;

原文地址: https://www.cveoy.top/t/topic/iGvk 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录