JSON.Net deserialize string which contains special characters
问题 How do I parse JSON string with one of the values containing special characters? JObject obj = JObject.Parse(str); str value: { "message": "some !@#$%^&*(){}:"?/?/|"':>;><{"d":"v"}" } I have got execption: After parsing a value an unexpected character was encountered: {. 回答1: Take your JSON and .stringify() it. { "message": JSON.stringify("your text here") } If you have raw data in your ASP.NET MVC view, you can follow this way: { "message": JSON.stringify("@Html.Raw(HttpUtility