I'm receiving a JSON object from a public API with a property that, itself, is an escaped JSON string.
{
"responses":[
{
"info":"keep "this" in a string",
"body":"{"error":{"message":"Invalid command","type":"Exception","code":123}}"
},
{
"info":"more "data" to keep in a string",
"body":"{"error":{"message":"Other error","type":"Exception","code":321}}"
}
]
}
How do I convert this property into an actual JSON object (unescaped) in order to deserialize the entire response using NewtonSoft Json.NET?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…