I am using Newtonsoft.Json to parse an object into a json string. It returns something like this:
{\"code\":-1,\"idName\":\"empty\",\"idValue\":0,\"message\":\"Failed,can not read object from body\"}
This is not a valid json string, I think anyone can help me?
I want something like this:
{"code":-1,"idName":"empty\",\"idValue\":0,\"message\":\"Failed,can not read object from body\"}
public static class CommonUtility {
EDIT: this is the real json from the Fidder TextView answer that I see:
"{\"code\":-1,\"idName\":\"empty\",\"idValue\":0,\"message\":\"Failed,can not read object from body\"}"
the scenario is this: I put the serialized json string in the apr CreateResponse method on the Internet. I see the response line in fidder, as I said in the question, which is not valid json
Request.CreateResponse(HttpStatusCode.Created, returnString);
returnString is a json string from a serialized ResponseString object
I do not think this is a valid string, am I wrong?