Json: how to properly strip the escape characters with json.net

前端 未结 5 889
既然无缘
既然无缘 2020-12-18 22:14

I have json response in the below format.

\"[{\\\\\\\"JobID\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"BillGenerationDate\\\\\\\":\\\\\\\"4/29/2013 2:53:34 PM\\\\\\\         


        
5条回答
  •  失恋的感觉
    2020-12-18 22:40

    The problem occurs when valid double quotes are used within the answer. Removing and/or Replacing won't solved this in all cases. It frustrated me too until I found a simple solution:

    var billList = JsonConvert.DeserializeObject>>(@contentCorrected);
    

提交回复
热议问题